diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-06-17 10:00:31 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-19 09:26:13 +0200 |
commit | 5746769d682aa91494b66de6d685fcb1257e4b80 (patch) | |
tree | 3966ed60c7c0d0ec818c80c8a40ede8bdbe4797e /test | |
parent | c206e7490cac0b8d44481f4da4d2b24278b00ad0 (diff) | |
download | android-node-v8-5746769d682aa91494b66de6d685fcb1257e4b80.tar.gz android-node-v8-5746769d682aa91494b66de6d685fcb1257e4b80.tar.bz2 android-node-v8-5746769d682aa91494b66de6d685fcb1257e4b80.zip |
lib,test: fix error message check after V8 update
PR-URL: https://github.com/nodejs/node/pull/28918
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-v8-flags.js | 4 | ||||
-rw-r--r-- | test/parallel/test-vm-basic.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-v8-flags.js b/test/parallel/test-v8-flags.js index 50d7047a5d..e476c5e388 100644 --- a/test/parallel/test-v8-flags.js +++ b/test/parallel/test-v8-flags.js @@ -13,6 +13,6 @@ assert(vm.runInThisContext('%_IsSmi(43)')); v8.setFlagsFromString('--noallow_natives_syntax'); assert.throws(function() { eval('%_IsSmi(44)'); }, - /^SyntaxError: Unexpected token %$/); + /^SyntaxError: Unexpected token '%'$/); assert.throws(function() { vm.runInThisContext('%_IsSmi(45)'); }, - /^SyntaxError: Unexpected token %$/); + /^SyntaxError: Unexpected token '%'$/); diff --git a/test/parallel/test-vm-basic.js b/test/parallel/test-vm-basic.js index 29e2a8b525..69fd859b02 100644 --- a/test/parallel/test-vm-basic.js +++ b/test/parallel/test-vm-basic.js @@ -152,7 +152,7 @@ const vm = require('vm'); ); }, { type: SyntaxError, - message: 'Unexpected token }' + message: "Unexpected token '}'" }); // Tests for failed argument validation |