diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-06-19 13:23:56 +0200 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-08-04 11:56:14 -0700 |
commit | 70d1f32f5605465a1a630a64f6f0d35f96c7709d (patch) | |
tree | 0a349040a686eafcb0a09943ebc733477dce2781 /deps/v8/test/message | |
parent | 4643b8b6671607a7aff60cbbd0b384dcf2f6959e (diff) | |
download | android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.tar.gz android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.tar.bz2 android-node-v8-70d1f32f5605465a1a630a64f6f0d35f96c7709d.zip |
deps: update v8 to 4.4.63.9
Upgrade the bundled V8 and update code in src/ and lib/ to the new API.
Notable backwards incompatible changes are the removal of the smalloc
module and dropped support for CESU-8 decoding. CESU-8 support can be
brought back if necessary by doing UTF-8 decoding ourselves.
This commit includes https://codereview.chromium.org/1192973004 to fix
a build error on python 2.6 systems. The original commit log follows:
Use optparse in js2c.py for python compatibility
Without this change, V8 won't build on RHEL/CentOS 6 because the
distro python is too old to know about the argparse module.
PR-URL: https://github.com/nodejs/io.js/pull/2022
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'deps/v8/test/message')
22 files changed, 154 insertions, 2 deletions
diff --git a/deps/v8/test/message/for-in-let-loop-initializers-strict.js b/deps/v8/test/message/for-in-let-loop-initializers-strict.js new file mode 100644 index 0000000000..a58f2fd275 --- /dev/null +++ b/deps/v8/test/message/for-in-let-loop-initializers-strict.js @@ -0,0 +1,11 @@ +// Copyright 2014 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. +// +'use strict'; + +function test() { + for (let x = void 0 in [1, 2, 3]) { + return x; + } +} diff --git a/deps/v8/test/message/for-in-let-loop-initializers-strict.out b/deps/v8/test/message/for-in-let-loop-initializers-strict.out new file mode 100644 index 0000000000..6c8ca9dfe9 --- /dev/null +++ b/deps/v8/test/message/for-in-let-loop-initializers-strict.out @@ -0,0 +1,7 @@ +# Copyright 2014 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: SyntaxError: for-in loop variable declaration may not have an initializer. + for (let x = void 0 in [1, 2, 3]) { + ^^^^^^^^^^ +SyntaxError: for-in loop variable declaration may not have an initializer. diff --git a/deps/v8/test/message/for-in-loop-initializers-strict.js b/deps/v8/test/message/for-in-loop-initializers-strict.js new file mode 100644 index 0000000000..6aa0925501 --- /dev/null +++ b/deps/v8/test/message/for-in-loop-initializers-strict.js @@ -0,0 +1,11 @@ +// Copyright 2014 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. +// +'use strict'; + +function test() { + for (var x = void 0 in [1, 2, 3]) { + return x; + } +} diff --git a/deps/v8/test/message/for-in-loop-initializers-strict.out b/deps/v8/test/message/for-in-loop-initializers-strict.out new file mode 100644 index 0000000000..41d7cbd286 --- /dev/null +++ b/deps/v8/test/message/for-in-loop-initializers-strict.out @@ -0,0 +1,7 @@ +# Copyright 2014 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: SyntaxError: for-in loop variable declaration may not have an initializer. + for (var x = void 0 in [1, 2, 3]) { + ^^^^^^^^^^ +SyntaxError: for-in loop variable declaration may not have an initializer. diff --git a/deps/v8/test/message/for-of-let-loop-initializers.js b/deps/v8/test/message/for-of-let-loop-initializers.js new file mode 100644 index 0000000000..4ac0d549ce --- /dev/null +++ b/deps/v8/test/message/for-of-let-loop-initializers.js @@ -0,0 +1,11 @@ +// Copyright 2014 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. +// +'use strict'; + +function test() { + for (let x = void 0 of [1, 2, 3]) { + return x; + } +} diff --git a/deps/v8/test/message/for-of-let-loop-initializers.out b/deps/v8/test/message/for-of-let-loop-initializers.out new file mode 100644 index 0000000000..3b43e9f644 --- /dev/null +++ b/deps/v8/test/message/for-of-let-loop-initializers.out @@ -0,0 +1,7 @@ +# Copyright 2014 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: SyntaxError: for-of loop variable declaration may not have an initializer. + for (let x = void 0 of [1, 2, 3]) { + ^^^^^^^^^^ +SyntaxError: for-of loop variable declaration may not have an initializer. diff --git a/deps/v8/test/message/for-of-loop-initializers-sloppy.js b/deps/v8/test/message/for-of-loop-initializers-sloppy.js new file mode 100644 index 0000000000..685e2e6d2e --- /dev/null +++ b/deps/v8/test/message/for-of-loop-initializers-sloppy.js @@ -0,0 +1,10 @@ +// Copyright 2014 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 test() { + for (var x = void 0 of [1, 2, 3]) { + return x; + } +} diff --git a/deps/v8/test/message/for-of-loop-initializers-sloppy.out b/deps/v8/test/message/for-of-loop-initializers-sloppy.out new file mode 100644 index 0000000000..2961d0cecd --- /dev/null +++ b/deps/v8/test/message/for-of-loop-initializers-sloppy.out @@ -0,0 +1,7 @@ +# Copyright 2014 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: SyntaxError: for-of loop variable declaration may not have an initializer. + for (var x = void 0 of [1, 2, 3]) { + ^^^^^^^^^^ +SyntaxError: for-of loop variable declaration may not have an initializer. diff --git a/deps/v8/test/message/for-of-loop-initializers-strict.js b/deps/v8/test/message/for-of-loop-initializers-strict.js new file mode 100644 index 0000000000..5b3dddc3c9 --- /dev/null +++ b/deps/v8/test/message/for-of-loop-initializers-strict.js @@ -0,0 +1,11 @@ +// Copyright 2014 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. +// +'use strict'; + +function test() { + for (var x = void 0 of [1, 2, 3]) { + return x; + } +} diff --git a/deps/v8/test/message/for-of-loop-initializers-strict.out b/deps/v8/test/message/for-of-loop-initializers-strict.out new file mode 100644 index 0000000000..e29bd84df8 --- /dev/null +++ b/deps/v8/test/message/for-of-loop-initializers-strict.out @@ -0,0 +1,7 @@ +# Copyright 2014 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: SyntaxError: for-of loop variable declaration may not have an initializer. + for (var x = void 0 of [1, 2, 3]) { + ^^^^^^^^^^ +SyntaxError: for-of loop variable declaration may not have an initializer. diff --git a/deps/v8/test/message/formal-parameters-bad-rest.js b/deps/v8/test/message/formal-parameters-bad-rest.js new file mode 100644 index 0000000000..c67e1de93f --- /dev/null +++ b/deps/v8/test/message/formal-parameters-bad-rest.js @@ -0,0 +1,7 @@ +// 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. +// +// Flags: --harmony-rest-parameters + +function foo(...b, a) { return a } diff --git a/deps/v8/test/message/formal-parameters-bad-rest.out b/deps/v8/test/message/formal-parameters-bad-rest.out new file mode 100644 index 0000000000..562b6ad49d --- /dev/null +++ b/deps/v8/test/message/formal-parameters-bad-rest.out @@ -0,0 +1,4 @@ +*%(basename)s:7: SyntaxError: Rest parameter must be last formal parameter +function foo(...b, a) { return a } + ^ +SyntaxError: Rest parameter must be last formal parameter diff --git a/deps/v8/test/message/formal-parameters-strict-body.js b/deps/v8/test/message/formal-parameters-strict-body.js new file mode 100644 index 0000000000..c5af7405f7 --- /dev/null +++ b/deps/v8/test/message/formal-parameters-strict-body.js @@ -0,0 +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. + +function foo(b, eval) { "use strict"; return b } diff --git a/deps/v8/test/message/formal-parameters-strict-body.out b/deps/v8/test/message/formal-parameters-strict-body.out new file mode 100644 index 0000000000..bb0d7e03b2 --- /dev/null +++ b/deps/v8/test/message/formal-parameters-strict-body.out @@ -0,0 +1,4 @@ +*%(basename)s:5: SyntaxError: Unexpected eval or arguments in strict mode +function foo(b, eval) { "use strict"; return b } + ^^^^ +SyntaxError: Unexpected eval or arguments in strict mode diff --git a/deps/v8/test/message/formal-parameters-trailing-comma.js b/deps/v8/test/message/formal-parameters-trailing-comma.js new file mode 100644 index 0000000000..09cdb8904b --- /dev/null +++ b/deps/v8/test/message/formal-parameters-trailing-comma.js @@ -0,0 +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. + +function foo(b, a, a,) { return a } diff --git a/deps/v8/test/message/formal-parameters-trailing-comma.out b/deps/v8/test/message/formal-parameters-trailing-comma.out new file mode 100644 index 0000000000..4b930eceae --- /dev/null +++ b/deps/v8/test/message/formal-parameters-trailing-comma.out @@ -0,0 +1,4 @@ +*%(basename)s:5: SyntaxError: Unexpected token ) +function foo(b, a, a,) { return a } + ^ +SyntaxError: Unexpected token ) diff --git a/deps/v8/test/message/message.status b/deps/v8/test/message/message.status index 234bf0f35c..f28aa2a8d3 100644 --- a/deps/v8/test/message/message.status +++ b/deps/v8/test/message/message.status @@ -30,4 +30,11 @@ # All tests in the bug directory are expected to fail. 'bugs/*': [FAIL], }], # ALWAYS + +############################################################################## +['arch == x87', { + + # Crankshaft compiler did not generate required source position for it: + 'overwritten-builtins': [SKIP], +}], # 'arch == x87' ] diff --git a/deps/v8/test/message/regress/regress-3995.js b/deps/v8/test/message/regress/regress-3995.js new file mode 100644 index 0000000000..ba84bc0965 --- /dev/null +++ b/deps/v8/test/message/regress/regress-3995.js @@ -0,0 +1,7 @@ +// 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. + +(function() { + throw new Error("boom"); +})(); diff --git a/deps/v8/test/message/regress/regress-3995.out b/deps/v8/test/message/regress/regress-3995.out new file mode 100644 index 0000000000..e4f5b31d1f --- /dev/null +++ b/deps/v8/test/message/regress/regress-3995.out @@ -0,0 +1,10 @@ +# 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. + +*%(basename)s:6: Error: boom + throw new Error("boom"); + ^ +Error: boom + at *%(basename)s:6:9 + at *%(basename)s:7:3 diff --git a/deps/v8/test/message/single-function-literal.js b/deps/v8/test/message/single-function-literal.js index fd734918ec..96d3bd663a 100644 --- a/deps/v8/test/message/single-function-literal.js +++ b/deps/v8/test/message/single-function-literal.js @@ -27,6 +27,6 @@ // Flags: --allow-natives-syntax var single_function_good = "(function() { return 5; })"; -%CompileString(single_function_good, true, 0); +%CompileString(single_function_good, true); var single_function_bad = "(function() { return 5; })();"; -%CompileString(single_function_bad, true, 0); +%CompileString(single_function_bad, true); diff --git a/deps/v8/test/message/strict-formal-parameters.js b/deps/v8/test/message/strict-formal-parameters.js new file mode 100644 index 0000000000..a6c75317b3 --- /dev/null +++ b/deps/v8/test/message/strict-formal-parameters.js @@ -0,0 +1,6 @@ +// 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. + +"use strict"; +function foo(b, a, a, d) { return a } diff --git a/deps/v8/test/message/strict-formal-parameters.out b/deps/v8/test/message/strict-formal-parameters.out new file mode 100644 index 0000000000..3648d38586 --- /dev/null +++ b/deps/v8/test/message/strict-formal-parameters.out @@ -0,0 +1,4 @@ +*%(basename)s:6: SyntaxError: Strict mode function may not have duplicate parameter names +function foo(b, a, a, d) { return a } + ^ +SyntaxError: Strict mode function may not have duplicate parameter names |