diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-05-02 10:50:00 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-05-06 20:02:35 +0200 |
commit | 60d1aac8d225e844e68ae48e8f3d58802e635fbe (patch) | |
tree | 922f347dd054db18d88666fad7181e5a777f4022 /deps/v8/test/mjsunit/regress/regress-2470.js | |
parent | 73d9c0f903ae371cd5011af64c3a6f69a1bda978 (diff) | |
download | node-new-60d1aac8d225e844e68ae48e8f3d58802e635fbe.tar.gz |
deps: update V8 to 5.8.283.38
PR-URL: https://github.com/nodejs/node/pull/12784
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-2470.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-2470.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-2470.js b/deps/v8/test/mjsunit/regress/regress-2470.js index 29a0b250ac..cba1b06c3e 100644 --- a/deps/v8/test/mjsunit/regress/regress-2470.js +++ b/deps/v8/test/mjsunit/regress/regress-2470.js @@ -34,12 +34,14 @@ assertThrows('Function("});(function(){");', SyntaxError); // Test whether block comments are handled correctly. assertDoesNotThrow('Function("/*", "*/", "/**/");'); assertDoesNotThrow('Function("/*", "a", "*/", "/**/");'); -assertThrows('Function("a", "/*", "*/", "/**/");', SyntaxError); +assertDoesNotThrow('Function("a", "/*", "*/", "/**/");'); +assertThrows('Function("a", "/*", "*/", "b", "/*", "*/", "/**/");', SyntaxError); // Test whether line comments are handled correctly. assertDoesNotThrow('Function("//", "//")'); assertDoesNotThrow('Function("//", "//", "//")'); -assertThrows('Function("a", "//", "//")', SyntaxError); +assertDoesNotThrow('Function("a", "//", "//")'); +assertThrows('Function("a", "", "//", "//")', SyntaxError); // Some embedders rely on the string representation of the resulting // function in cases where no formal parameters are specified. |