Add initial tests for WS positioned after RegExp literal

This commit is contained in:
Leo Balter 2021-07-14 13:52:33 -07:00
parent f1f3a2d542
commit eecee31d05
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// Copyright (C) 2021 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: 000A (LF)
esid: prod-RegularExpressionLiteral
template: default
---*/
//- character
\u000A

View File

@ -0,0 +1,11 @@
// Copyright (C) 2021 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: 000D (RF)
esid: prod-RegularExpressionLiteral
template: default
---*/
//- character
\u000D

View File

@ -0,0 +1,16 @@
// Copyright (C) 2021 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/literals/regexp/
name: WhiteSpace character positioned after
esid: prod-RegularExpressionLiteral
info: |
In the ECMAScript lexical grammar, WhiteSpace is defined to include ASCII
tab/vertical tab/form feed/space, nonbreaking space, BOM/zero-width
nonbreaking space, and any code point with the Unicode property
“Space_Separator”, and LineTerminator is any of U+000A LINE FEED, U+000D
CARRIAGE RETURN, U+2028 LINE SEPARATOR, and U+2029 PARAGRAPH SEPARATOR. Both
are required to be insignificant in between expression tokens
---*/
/.//*{ character }*/;