diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-03-21 10:16:54 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-03-25 09:44:10 +0100 |
commit | c459d8ea5d402c702948c860d9497b2230ff7e8a (patch) | |
tree | 56c282fc4d40e5cb613b47cf7be3ea0526ed5b6f /deps/v8/test/message | |
parent | e0bc5a7361b1d29c3ed034155fd779ce6f44fb13 (diff) | |
download | android-node-v8-c459d8ea5d402c702948c860d9497b2230ff7e8a.tar.gz android-node-v8-c459d8ea5d402c702948c860d9497b2230ff7e8a.tar.bz2 android-node-v8-c459d8ea5d402c702948c860d9497b2230ff7e8a.zip |
deps: update V8 to 5.7.492.69
PR-URL: https://github.com/nodejs/node/pull/11752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'deps/v8/test/message')
22 files changed, 139 insertions, 17 deletions
diff --git a/deps/v8/test/message/call-non-constructable.js b/deps/v8/test/message/call-non-constructable.js new file mode 100644 index 0000000000..261acbdad0 --- /dev/null +++ b/deps/v8/test/message/call-non-constructable.js @@ -0,0 +1,8 @@ +// Copyright 2016 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. + +// Note that {unescape} is an example of a non-constructable function. If that +// ever changes and this test needs to be adapted, make sure to choose another +// non-constructable {JSFunction} object instead. +new unescape(); diff --git a/deps/v8/test/message/call-non-constructable.out b/deps/v8/test/message/call-non-constructable.out new file mode 100644 index 0000000000..89f689790a --- /dev/null +++ b/deps/v8/test/message/call-non-constructable.out @@ -0,0 +1,9 @@ +# Copyright 2016 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. + +*%(basename)s:8: TypeError: unescape is not a constructor +new unescape(); +^ +TypeError: unescape is not a constructor + at *%(basename)s:8:1 diff --git a/deps/v8/test/message/call-primitive-constructor.js b/deps/v8/test/message/call-primitive-constructor.js new file mode 100644 index 0000000000..a5c9266682 --- /dev/null +++ b/deps/v8/test/message/call-primitive-constructor.js @@ -0,0 +1,6 @@ +// Copyright 2016 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. + +var non_callable = 0; +new non_callable(); diff --git a/deps/v8/test/message/call-primitive-constructor.out b/deps/v8/test/message/call-primitive-constructor.out new file mode 100644 index 0000000000..ad5172acce --- /dev/null +++ b/deps/v8/test/message/call-primitive-constructor.out @@ -0,0 +1,9 @@ +# Copyright 2016 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. + +*%(basename)s:6: TypeError: non_callable is not a constructor +new non_callable(); +^ +TypeError: non_callable is not a constructor + at *%(basename)s:6:1 diff --git a/deps/v8/test/message/call-primitive-function.js b/deps/v8/test/message/call-primitive-function.js new file mode 100644 index 0000000000..b5872513dc --- /dev/null +++ b/deps/v8/test/message/call-primitive-function.js @@ -0,0 +1,6 @@ +// Copyright 2016 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. + +var non_callable = 0; +non_callable(); diff --git a/deps/v8/test/message/call-primitive-function.out b/deps/v8/test/message/call-primitive-function.out new file mode 100644 index 0000000000..be707ed15c --- /dev/null +++ b/deps/v8/test/message/call-primitive-function.out @@ -0,0 +1,9 @@ +# Copyright 2016 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. + +*%(basename)s:6: TypeError: non_callable is not a function +non_callable(); +^ +TypeError: non_callable is not a function + at *%(basename)s:6:1 diff --git a/deps/v8/test/message/call-undeclared-function.js b/deps/v8/test/message/call-undeclared-function.js new file mode 100644 index 0000000000..2c6f9aaec1 --- /dev/null +++ b/deps/v8/test/message/call-undeclared-function.js @@ -0,0 +1,5 @@ +// Copyright 2016 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. + +not_declared(); diff --git a/deps/v8/test/message/call-undeclared-function.out b/deps/v8/test/message/call-undeclared-function.out new file mode 100644 index 0000000000..c853122b37 --- /dev/null +++ b/deps/v8/test/message/call-undeclared-function.out @@ -0,0 +1,9 @@ +# Copyright 2016 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. + +*%(basename)s:5: ReferenceError: not_declared is not defined +not_declared(); +^ +ReferenceError: not_declared is not defined + at *%(basename)s:5:1 diff --git a/deps/v8/test/message/for-loop-invalid-lhs.js b/deps/v8/test/message/for-loop-invalid-lhs.js index c545230348..81a9512a6c 100644 --- a/deps/v8/test/message/for-loop-invalid-lhs.js +++ b/deps/v8/test/message/for-loop-invalid-lhs.js @@ -1,9 +1,5 @@ // Copyright 2015 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. -// -// TODO(adamk): Remove flag after the test runner tests all message tests with -// the preparser: https://code.google.com/p/v8/issues/detail?id=4372 -// Flags: --min-preparse-length=0 function f() { for ("unassignable" in {}); } diff --git a/deps/v8/test/message/for-loop-invalid-lhs.out b/deps/v8/test/message/for-loop-invalid-lhs.out index 441ba3b60c..b42e8512f6 100644 --- a/deps/v8/test/message/for-loop-invalid-lhs.out +++ b/deps/v8/test/message/for-loop-invalid-lhs.out @@ -1,4 +1,4 @@ -*%(basename)s:9: SyntaxError: Invalid left-hand side in for-loop +*%(basename)s:5: SyntaxError: Invalid left-hand side in for-loop function f() { for ("unassignable" in {}); } ^^^^^^^^^^^^^^ SyntaxError: Invalid left-hand side in for-loop diff --git a/deps/v8/test/message/message.status b/deps/v8/test/message/message.status index c6c3487473..ebdf76e5e8 100644 --- a/deps/v8/test/message/message.status +++ b/deps/v8/test/message/message.status @@ -36,10 +36,4 @@ # tested standalone. 'modules-skip*': [SKIP], }], # ALWAYS - -['variant != ignition and variant != ignition_staging and variant != ignition_turbofan', { - # Ongoing implementation of modules. - # https://bugs.chromium.org/p/v8/issues/detail?id=1569 - 'modules-*': [SKIP], -}], # variant != ignition and variant != ignition_staging and variant != ignition_turbofan ] diff --git a/deps/v8/test/message/regress/regress-crbug-661579.js b/deps/v8/test/message/regress/regress-crbug-661579.js new file mode 100644 index 0000000000..d5c574cbda --- /dev/null +++ b/deps/v8/test/message/regress/regress-crbug-661579.js @@ -0,0 +1,12 @@ +// Copyright 2016 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. + +var a = {}; +function foo() { + a.push(); +} +function bar() { + foo(); +} +bar(); diff --git a/deps/v8/test/message/regress/regress-crbug-661579.out b/deps/v8/test/message/regress/regress-crbug-661579.out new file mode 100644 index 0000000000..72cca79bb1 --- /dev/null +++ b/deps/v8/test/message/regress/regress-crbug-661579.out @@ -0,0 +1,11 @@ +# Copyright 2016 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. + +*%(basename)s:7: TypeError: a.push is not a function + a.push(); + ^ +TypeError: a.push is not a function + at foo (*%(basename)s:7:5) + at bar (*%(basename)s:10:3) + at *%(basename)s:12:1 diff --git a/deps/v8/test/message/regress/regress-crbug-669017.js b/deps/v8/test/message/regress/regress-crbug-669017.js new file mode 100644 index 0000000000..a8d76ecacd --- /dev/null +++ b/deps/v8/test/message/regress/regress-crbug-669017.js @@ -0,0 +1,5 @@ +// Copyright 2016 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. + +1073741824O0 diff --git a/deps/v8/test/message/regress/regress-crbug-669017.out b/deps/v8/test/message/regress/regress-crbug-669017.out new file mode 100644 index 0000000000..c2589e7a15 --- /dev/null +++ b/deps/v8/test/message/regress/regress-crbug-669017.out @@ -0,0 +1,8 @@ +# Copyright 2016 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. + +*%(basename)s:5: SyntaxError: Invalid or unexpected token +1073741824O0 +^^^^^^^^^^ +SyntaxError: Invalid or unexpected token diff --git a/deps/v8/test/message/strict-octal-string.out b/deps/v8/test/message/strict-octal-string.out index c46df6bbff..69f81a48c8 100644 --- a/deps/v8/test/message/strict-octal-string.out +++ b/deps/v8/test/message/strict-octal-string.out @@ -1,4 +1,4 @@ -*%(basename)s:32: SyntaxError: Octal literals are not allowed in strict mode. +*%(basename)s:32: SyntaxError: Octal escape sequences are not allowed in strict mode. var x = "hello\040world"; ^^ -SyntaxError: Octal literals are not allowed in strict mode. +SyntaxError: Octal escape sequences are not allowed in strict mode. diff --git a/deps/v8/test/message/strict-octal-use-strict-after.out b/deps/v8/test/message/strict-octal-use-strict-after.out index 2a425000ab..1fe03dd734 100644 --- a/deps/v8/test/message/strict-octal-use-strict-after.out +++ b/deps/v8/test/message/strict-octal-use-strict-after.out @@ -1,4 +1,4 @@ -*%(basename)s:33: SyntaxError: Octal literals are not allowed in strict mode. +*%(basename)s:33: SyntaxError: Octal escape sequences are not allowed in strict mode. "use\040strict"; ^^ -SyntaxError: Octal literals are not allowed in strict mode. +SyntaxError: Octal escape sequences are not allowed in strict mode. diff --git a/deps/v8/test/message/strict-octal-use-strict-before.out b/deps/v8/test/message/strict-octal-use-strict-before.out index cd93e50df9..e742288431 100644 --- a/deps/v8/test/message/strict-octal-use-strict-before.out +++ b/deps/v8/test/message/strict-octal-use-strict-before.out @@ -1,4 +1,4 @@ -*%(basename)s:32: SyntaxError: Octal literals are not allowed in strict mode. +*%(basename)s:32: SyntaxError: Octal escape sequences are not allowed in strict mode. "use\040strict"; ^^ -SyntaxError: Octal literals are not allowed in strict mode. +SyntaxError: Octal escape sequences are not allowed in strict mode. diff --git a/deps/v8/test/message/tonumber-symbol.js b/deps/v8/test/message/tonumber-symbol.js new file mode 100644 index 0000000000..28a6d3cdeb --- /dev/null +++ b/deps/v8/test/message/tonumber-symbol.js @@ -0,0 +1,9 @@ +// Copyright 2016 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. +// +// + +function foo(arg) { } + +foo(Symbol() | 0); diff --git a/deps/v8/test/message/tonumber-symbol.out b/deps/v8/test/message/tonumber-symbol.out new file mode 100644 index 0000000000..c09c9a97ec --- /dev/null +++ b/deps/v8/test/message/tonumber-symbol.out @@ -0,0 +1,6 @@ +*%(basename)s:9: TypeError: Cannot convert a Symbol value to a number +foo(Symbol() | 0); + ^ +TypeError: Cannot convert a Symbol value to a number + at *%(basename)s:9:14 + diff --git a/deps/v8/test/message/wasm-trap.js b/deps/v8/test/message/wasm-trap.js new file mode 100644 index 0000000000..53013a7d22 --- /dev/null +++ b/deps/v8/test/message/wasm-trap.js @@ -0,0 +1,15 @@ +// Copyright 2016 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. + +// Flags: --expose-wasm + +load("test/mjsunit/wasm/wasm-constants.js"); +load("test/mjsunit/wasm/wasm-module-builder.js"); + +var builder = new WasmModuleBuilder(); +builder.addFunction('main', kSig_i_v) + .addBody([kExprI32Const, 2, kExprI32Const, 0, kExprI32DivU]) + .exportFunc(); +var module = builder.instantiate(); +module.exports.main(); diff --git a/deps/v8/test/message/wasm-trap.out b/deps/v8/test/message/wasm-trap.out new file mode 100644 index 0000000000..237f60a1d4 --- /dev/null +++ b/deps/v8/test/message/wasm-trap.out @@ -0,0 +1,5 @@ +<WASM>[0]+5: RuntimeError: divide by zero +RuntimeError: divide by zero + at main (<WASM>[0]+5) + at *%(basename)s:15:16 + |