diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-07-25 19:30:07 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-07-26 08:31:50 +0200 |
commit | 6a31d05340b22fc413ee83eaacd0a5565bbbe799 (patch) | |
tree | 78f9e1c2f417244842f6422f17e1816e70317100 /deps/v8/test/mjsunit/linecontinuation.js | |
parent | 4d94bb2b1f72b6b612983a517a39c5545724a3ad (diff) | |
download | android-node-v8-6a31d05340b22fc413ee83eaacd0a5565bbbe799.tar.gz android-node-v8-6a31d05340b22fc413ee83eaacd0a5565bbbe799.tar.bz2 android-node-v8-6a31d05340b22fc413ee83eaacd0a5565bbbe799.zip |
deps: update V8 to 6.8.275.24
PR-URL: https://github.com/nodejs/node/pull/21079
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Diffstat (limited to 'deps/v8/test/mjsunit/linecontinuation.js')
-rw-r--r-- | deps/v8/test/mjsunit/linecontinuation.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/linecontinuation.js b/deps/v8/test/mjsunit/linecontinuation.js new file mode 100644 index 0000000000..a8f2f61dca --- /dev/null +++ b/deps/v8/test/mjsunit/linecontinuation.js @@ -0,0 +1,40 @@ +// Copyright 2018 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// https://tc39.github.io/ecma262/#sec-literals-string-literals +// +// LineContinuation :: +// \ LineTerminatorSequence +// +// LineTerminatorSequence :: +// <LF> +// <CR>[lookahead ≠ <LF>] +// <LS> +// <PS> +// <CR><LF> + +// LineTerminatorSequence :: <LF> +assertEquals('', eval('"\\\n"')); +assertEquals('', eval("'\\\n'")); +assertEquals('', eval('`\\\n`')); + +// LineTerminatorSequence :: <CR>[lookahead ≠ <LF>] +assertEquals('', eval('"\\\r"')); +assertEquals('', eval("'\\\r'")); +assertEquals('', eval('`\\\r`')); + +// LineTerminatorSequence :: <LS> +assertEquals('', eval('"\\\u2028"')); +assertEquals('', eval("'\\\u2028'")); +assertEquals('', eval('`\\\u2028`')); + +// LineTerminatorSequence :: <PS> +assertEquals('', eval('"\\\u2029"')); +assertEquals('', eval("'\\\u2029'")); +assertEquals('', eval('`\\\u2029`')); + +// LineTerminatorSequence :: <CR><LF> +assertEquals('', eval('"\\\r\n"')); +assertEquals('', eval("'\\\r\n'")); +assertEquals('', eval('`\\\r\n`')); |