invalid-optional-negative-lookbehind.js (528B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2018 Igalia S. L. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 esid: sec-regular-expressions-patterns 6 description: Lookbehinds are not treated as a QuantifiableAssertion 7 info: | 8 Term[U] :: 9 [~U] QuantifiableAssertion Quantifier 10 11 QuantifiableAssertion[N]:: 12 ( ? = Disjunction[~U, ?N] ) 13 ( ? ! Disjunction[~U, ?N] ) 14 negative: 15 phase: parse 16 type: SyntaxError 17 ---*/ 18 19 $DONOTEVALUATE(); 20 21 /.(?<!.)?/;