Mercurial > hg > icedtea8-forest > nashorn
changeset 2606:2e03a91e04b9
8223898: Forward references to Nashorn
Reviewed-by: sundar, mschoene, rhalade
author | hannesw |
---|---|
date | Wed, 06 Nov 2019 17:13:21 +0100 |
parents | 5fc91c4182b0 |
children | 2f5ad880fd33 |
files | src/jdk/nashorn/internal/runtime/regexp/RegExpScanner.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/jdk/nashorn/internal/runtime/regexp/RegExpScanner.java Fri Mar 27 05:14:35 2020 +0000 +++ b/src/jdk/nashorn/internal/runtime/regexp/RegExpScanner.java Wed Nov 06 17:13:21 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -141,14 +141,14 @@ throw new PatternSyntaxException(e.getMessage(), string, scanner.position); } - scanner.processForwardReferences(); - // Throw syntax error unless we parsed the entire JavaScript regexp without syntax errors if (scanner.position != string.length()) { final String p = scanner.getStringBuilder().toString(); throw new PatternSyntaxException(string, p, p.length() + 1); } + scanner.processForwardReferences(); + return scanner; }