diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream.tar.xz firefox-esr-upstream.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js')
-rw-r--r-- | js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js b/js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js new file mode 100644 index 0000000000..0bfe3cefb0 --- /dev/null +++ b/js/src/tests/test262/language/white-space/after-regular-expression-literal-line-separator.js @@ -0,0 +1,46 @@ +// This file was procedurally generated from the following sources: +// - src/insignificant-input-elements/line-separator.case +// - src/insignificant-input-elements/expression/after-regular-expression-literal.template +/*--- +description: U+2028 LINE SEPARATOR <LS> (after regular expression literal) +esid: sec-lexical-and-regexp-grammars +flags: [generated] +info: | + Input elements other than white space and comments form the terminal symbols + for the syntactic grammar for ECMAScript and are called ECMAScript + <em>tokens</em>. These tokens are the reserved words, identifiers, literals, + and punctuators of the ECMAScript language. Moreover, line terminators, + although not considered to be tokens, also become part of the stream of input + elements and guide the process of automatic semicolon insertion + (<emu-xref href="#sec-automatic-semicolon-insertion"></emu-xref>). Simple + white space and single-line comments are discarded and do not appear in the + stream of input elements for the syntactic grammar. A |MultiLineComment| (that + is, a comment of the form `/*`…`*``/` regardless of whether it spans more + than one line) is likewise simply discarded if it contains no line terminator; + but if a |MultiLineComment| contains one or more line terminators, then it is + replaced by a single line terminator, which becomes part of the stream of + input elements for the syntactic grammar. + + <tr> + <td> + `U+2028` + </td> + <td> + LINE SEPARATOR + </td> + <td> + <LS> + </td> + </tr> + + LineTerminator :: + <LF> + <CR> + <LS> + <PS> +---*/ + + +/x/g
; + +reportCompare(0, 0); |