mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Test parsing error when using unicode escape sequences to express i, m, s
As suggested in https://github.com/tc39/test262/pull/3960#issuecomment-1966827213
This commit is contained in:
parent
229a27bcbc
commit
9e03c403e7
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Source text cannot use unicode escape sequences to express code points "i", "m", "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?\u0069:a)/u /* i */;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Source text cannot use unicode escape sequences to express code points "i", "m", "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?\u006D:a)/u /* m */;
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2024 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
description: Source text cannot use unicode escape sequences to express code points "i", "m", "s" (regular expression flags)
|
||||
esid: sec-patterns-static-semantics-early-errors
|
||||
features: [regexp-modifiers]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
Atom :: ( ? RegularExpresisonFlags : Disjunction )
|
||||
It is a Syntax Error if the source text matched by RegularExpressionFlags contains any code points other than "i", "m", "s", or if it contains the same code point more than once.
|
||||
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
/(?\u0073:a)/u /* s */;
|
Loading…
x
Reference in New Issue
Block a user