summaryrefslogtreecommitdiff
path: root/deps/v8/test/message
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2018-05-31 11:11:57 +0200
committerMyles Borins <mylesborins@google.com>2018-06-01 09:58:27 +0200
commit352a525eb984b8fa2d6f0f6fd68395e6a080bba4 (patch)
treea105ae93f8fd8f533cce19a429f1b6e95d6e11ca /deps/v8/test/message
parentfaf449ca0490f5371dc6cbbc94a87eb697b00fcc (diff)
downloadandroid-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.gz
android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.bz2
android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.zip
deps: update V8 to 6.7.288.43
PR-URL: https://github.com/nodejs/node/pull/19989 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/test/message')
-rw-r--r--deps/v8/test/message/BUILD.gn16
-rw-r--r--deps/v8/test/message/fail/call-expression.js9
-rw-r--r--deps/v8/test/message/fail/call-expression.out5
-rw-r--r--deps/v8/test/message/fail/map-arg-non-iterable.js5
-rw-r--r--deps/v8/test/message/fail/map-arg-non-iterable.out6
-rw-r--r--deps/v8/test/message/fail/octal-template-literal.js7
-rw-r--r--deps/v8/test/message/fail/octal-template-literal.out4
-rw-r--r--deps/v8/test/message/message.isolate14
-rw-r--r--deps/v8/test/message/wasm-finish-compilation.js22
-rw-r--r--deps/v8/test/message/wasm-finish-compilation.out1
-rw-r--r--deps/v8/test/message/wasm-function-name-async.js20
-rw-r--r--deps/v8/test/message/wasm-function-name-async.out4
-rw-r--r--deps/v8/test/message/wasm-function-name-streaming.js7
-rw-r--r--deps/v8/test/message/wasm-function-name-streaming.out4
-rw-r--r--deps/v8/test/message/wasm-module-and-function-name-async.js21
-rw-r--r--deps/v8/test/message/wasm-module-and-function-name-async.out4
-rw-r--r--deps/v8/test/message/wasm-module-and-function-name-streaming.js7
-rw-r--r--deps/v8/test/message/wasm-module-and-function-name-streaming.out4
-rw-r--r--deps/v8/test/message/wasm-module-name-async.js23
-rw-r--r--deps/v8/test/message/wasm-module-name-async.out4
-rw-r--r--deps/v8/test/message/wasm-module-name-streaming.js7
-rw-r--r--deps/v8/test/message/wasm-module-name-streaming.out4
-rw-r--r--deps/v8/test/message/wasm-no-name-async.js22
-rw-r--r--deps/v8/test/message/wasm-no-name-async.out4
-rw-r--r--deps/v8/test/message/wasm-no-name-streaming.js7
-rw-r--r--deps/v8/test/message/wasm-no-name-streaming.out4
26 files changed, 221 insertions, 14 deletions
diff --git a/deps/v8/test/message/BUILD.gn b/deps/v8/test/message/BUILD.gn
new file mode 100644
index 0000000000..c8800ed19e
--- /dev/null
+++ b/deps/v8/test/message/BUILD.gn
@@ -0,0 +1,16 @@
+# 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.
+
+group("v8_message") {
+ testonly = true
+
+ data_deps = [
+ "../..:d8",
+ "../../tools:v8_testrunner",
+ ]
+
+ data = [
+ "./",
+ ]
+}
diff --git a/deps/v8/test/message/fail/call-expression.js b/deps/v8/test/message/fail/call-expression.js
new file mode 100644
index 0000000000..757b534940
--- /dev/null
+++ b/deps/v8/test/message/fail/call-expression.js
@@ -0,0 +1,9 @@
+// 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.
+
+
+const config = {
+ min: Math.min(1, 2),
+ func: myfunc(),
+}
diff --git a/deps/v8/test/message/fail/call-expression.out b/deps/v8/test/message/fail/call-expression.out
new file mode 100644
index 0000000000..ece67f6959
--- /dev/null
+++ b/deps/v8/test/message/fail/call-expression.out
@@ -0,0 +1,5 @@
+*%(basename)s:8: ReferenceError: myfunc is not defined
+ func: myfunc(),
+ ^
+ReferenceError: myfunc is not defined
+ at *%(basename)s:8:9 \ No newline at end of file
diff --git a/deps/v8/test/message/fail/map-arg-non-iterable.js b/deps/v8/test/message/fail/map-arg-non-iterable.js
new file mode 100644
index 0000000000..d4cb7a7714
--- /dev/null
+++ b/deps/v8/test/message/fail/map-arg-non-iterable.js
@@ -0,0 +1,5 @@
+// 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.
+
+new Map(1);
diff --git a/deps/v8/test/message/fail/map-arg-non-iterable.out b/deps/v8/test/message/fail/map-arg-non-iterable.out
new file mode 100644
index 0000000000..78aa8ef033
--- /dev/null
+++ b/deps/v8/test/message/fail/map-arg-non-iterable.out
@@ -0,0 +1,6 @@
+*%(basename)s:5: TypeError: 1 is not iterable
+new Map(1);
+^
+TypeError: 1 is not iterable
+ at new Map (<anonymous>)
+ at *%(basename)s:5:1
diff --git a/deps/v8/test/message/fail/octal-template-literal.js b/deps/v8/test/message/fail/octal-template-literal.js
new file mode 100644
index 0000000000..4c678faed9
--- /dev/null
+++ b/deps/v8/test/message/fail/octal-template-literal.js
@@ -0,0 +1,7 @@
+// 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.
+//
+//
+
+`\123`
diff --git a/deps/v8/test/message/fail/octal-template-literal.out b/deps/v8/test/message/fail/octal-template-literal.out
new file mode 100644
index 0000000000..b0a7159ad8
--- /dev/null
+++ b/deps/v8/test/message/fail/octal-template-literal.out
@@ -0,0 +1,4 @@
+*%(basename)s:7: SyntaxError: Octal escape sequences are not allowed in template strings.
+`\123`
+ ^^
+SyntaxError: Octal escape sequences are not allowed in template strings.
diff --git a/deps/v8/test/message/message.isolate b/deps/v8/test/message/message.isolate
deleted file mode 100644
index dbeca5e55c..0000000000
--- a/deps/v8/test/message/message.isolate
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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.
-{
- 'variables': {
- 'files': [
- './',
- ],
- },
- 'includes': [
- '../../src/d8.isolate',
- '../../tools/testrunner/testrunner.isolate',
- ],
-} \ No newline at end of file
diff --git a/deps/v8/test/message/wasm-finish-compilation.js b/deps/v8/test/message/wasm-finish-compilation.js
new file mode 100644
index 0000000000..ca0f952bc1
--- /dev/null
+++ b/deps/v8/test/message/wasm-finish-compilation.js
@@ -0,0 +1,22 @@
+// 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.
+
+// Flags: --no-stress-opt
+
+load('test/mjsunit/wasm/wasm-constants.js');
+load('test/mjsunit/wasm/wasm-module-builder.js');
+
+// Test that d8 does not terminate until wasm compilation has finished and the
+// promise was resolved.
+
+var builder = new WasmModuleBuilder();
+// Add a few functions so it takes some time to compile.
+for (var i = 0; i < 2000; ++i) {
+ builder.addFunction('fun' + i, kSig_i_v)
+ .addBody([...wasmI32Const(i)])
+ .exportFunc();
+}
+builder.asyncInstantiate()
+ .then(instance => instance.exports.fun1155())
+ .then(res => print('Result of executing fun1155: ' + res));
diff --git a/deps/v8/test/message/wasm-finish-compilation.out b/deps/v8/test/message/wasm-finish-compilation.out
new file mode 100644
index 0000000000..80c0cafae0
--- /dev/null
+++ b/deps/v8/test/message/wasm-finish-compilation.out
@@ -0,0 +1 @@
+Result of executing fun1155: 1155
diff --git a/deps/v8/test/message/wasm-function-name-async.js b/deps/v8/test/message/wasm-function-name-async.js
new file mode 100644
index 0000000000..ddff21ee21
--- /dev/null
+++ b/deps/v8/test/message/wasm-function-name-async.js
@@ -0,0 +1,20 @@
+// 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.
+
+// Flags: --expose-wasm --no-stress-opt
+
+load('test/mjsunit/mjsunit.js');
+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([kExprUnreachable]).exportFunc();
+let buffer = builder.toBuffer();
+assertPromiseResult(WebAssembly.instantiate(buffer), pair => {
+ try {
+ pair.instance.exports.main();
+ } catch (e) {
+ print(e.stack);
+ }
+});
diff --git a/deps/v8/test/message/wasm-function-name-async.out b/deps/v8/test/message/wasm-function-name-async.out
new file mode 100644
index 0000000000..8e8d96ff10
--- /dev/null
+++ b/deps/v8/test/message/wasm-function-name-async.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at main (wasm-function[0]:1)
+ at pair (*%(basename)s:16:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-function-name-streaming.js b/deps/v8/test/message/wasm-function-name-streaming.js
new file mode 100644
index 0000000000..9095da4a8d
--- /dev/null
+++ b/deps/v8/test/message/wasm-function-name-streaming.js
@@ -0,0 +1,7 @@
+// 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.
+
+// Flags: --expose-wasm --wasm-test-streaming --no-stress-opt
+
+load("test/message/wasm-function-name-async.js");
diff --git a/deps/v8/test/message/wasm-function-name-streaming.out b/deps/v8/test/message/wasm-function-name-streaming.out
new file mode 100644
index 0000000000..0daaabd93b
--- /dev/null
+++ b/deps/v8/test/message/wasm-function-name-streaming.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at main (wasm-function[0]:1)
+ at pair (test/message/wasm-function-name-async.js:16:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-module-and-function-name-async.js b/deps/v8/test/message/wasm-module-and-function-name-async.js
new file mode 100644
index 0000000000..fa29cab216
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-and-function-name-async.js
@@ -0,0 +1,21 @@
+// 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.
+
+// Flags: --expose-wasm --no-stress-opt
+
+load('test/mjsunit/mjsunit.js');
+load('test/mjsunit/wasm/wasm-constants.js');
+load('test/mjsunit/wasm/wasm-module-builder.js');
+
+var builder = new WasmModuleBuilder();
+builder.setName('test-module');
+builder.addFunction('main', kSig_i_v).addBody([kExprUnreachable]).exportFunc();
+let buffer = builder.toBuffer();
+assertPromiseResult(WebAssembly.instantiate(buffer), pair => {
+ try {
+ pair.instance.exports.main();
+ } catch (e) {
+ print(e.stack);
+ }
+});
diff --git a/deps/v8/test/message/wasm-module-and-function-name-async.out b/deps/v8/test/message/wasm-module-and-function-name-async.out
new file mode 100644
index 0000000000..de4edf4491
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-and-function-name-async.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at test-module.main (wasm-function[0]:1)
+ at pair (*%(basename)s:17:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-module-and-function-name-streaming.js b/deps/v8/test/message/wasm-module-and-function-name-streaming.js
new file mode 100644
index 0000000000..87b95c253a
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-and-function-name-streaming.js
@@ -0,0 +1,7 @@
+// 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.
+
+// Flags: --expose-wasm --wasm-test-streaming --no-stress-opt
+
+load("test/message/wasm-module-and-function-name-async.js");
diff --git a/deps/v8/test/message/wasm-module-and-function-name-streaming.out b/deps/v8/test/message/wasm-module-and-function-name-streaming.out
new file mode 100644
index 0000000000..692011d554
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-and-function-name-streaming.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at test-module.main (wasm-function[0]:1)
+ at pair (test/message/wasm-module-and-function-name-async.js:17:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-module-name-async.js b/deps/v8/test/message/wasm-module-name-async.js
new file mode 100644
index 0000000000..d24357965b
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-name-async.js
@@ -0,0 +1,23 @@
+// 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.
+
+// Flags: --expose-wasm --no-stress-opt
+
+load('test/mjsunit/mjsunit.js');
+load('test/mjsunit/wasm/wasm-constants.js');
+load('test/mjsunit/wasm/wasm-module-builder.js');
+
+var builder = new WasmModuleBuilder();
+builder.setName('test-module');
+builder.addFunction(undefined, kSig_i_v)
+ .addBody([kExprUnreachable])
+ .exportAs('main');
+let buffer = builder.toBuffer();
+assertPromiseResult(WebAssembly.instantiate(buffer), pair => {
+ try {
+ pair.instance.exports.main();
+ } catch (e) {
+ print(e.stack);
+ }
+});
diff --git a/deps/v8/test/message/wasm-module-name-async.out b/deps/v8/test/message/wasm-module-name-async.out
new file mode 100644
index 0000000000..66e7219ff5
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-name-async.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at test-module (wasm-function[0]:1)
+ at pair (*%(basename)s:19:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-module-name-streaming.js b/deps/v8/test/message/wasm-module-name-streaming.js
new file mode 100644
index 0000000000..044b0b968e
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-name-streaming.js
@@ -0,0 +1,7 @@
+// 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.
+
+// Flags: --expose-wasm --wasm-test-streaming --no-stress-opt
+
+load("test/message/wasm-module-name-async.js");
diff --git a/deps/v8/test/message/wasm-module-name-streaming.out b/deps/v8/test/message/wasm-module-name-streaming.out
new file mode 100644
index 0000000000..b06fba7745
--- /dev/null
+++ b/deps/v8/test/message/wasm-module-name-streaming.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at test-module (wasm-function[0]:1)
+ at pair (test/message/wasm-module-name-async.js:19:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-no-name-async.js b/deps/v8/test/message/wasm-no-name-async.js
new file mode 100644
index 0000000000..f60ba35133
--- /dev/null
+++ b/deps/v8/test/message/wasm-no-name-async.js
@@ -0,0 +1,22 @@
+// 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.
+
+// Flags: --expose-wasm --no-stress-opt
+
+load('test/mjsunit/mjsunit.js');
+load('test/mjsunit/wasm/wasm-constants.js');
+load('test/mjsunit/wasm/wasm-module-builder.js');
+
+var builder = new WasmModuleBuilder();
+builder.addFunction(undefined, kSig_i_v)
+ .addBody([kExprUnreachable])
+ .exportAs('main');
+let buffer = builder.toBuffer();
+assertPromiseResult(WebAssembly.instantiate(buffer), pair => {
+ try {
+ pair.instance.exports.main();
+ } catch (e) {
+ print(e.stack);
+ }
+});
diff --git a/deps/v8/test/message/wasm-no-name-async.out b/deps/v8/test/message/wasm-no-name-async.out
new file mode 100644
index 0000000000..d7d31c513f
--- /dev/null
+++ b/deps/v8/test/message/wasm-no-name-async.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at wasm-function[0]:1
+ at pair (*%(basename)s:18:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)
diff --git a/deps/v8/test/message/wasm-no-name-streaming.js b/deps/v8/test/message/wasm-no-name-streaming.js
new file mode 100644
index 0000000000..238fe5da57
--- /dev/null
+++ b/deps/v8/test/message/wasm-no-name-streaming.js
@@ -0,0 +1,7 @@
+// 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.
+
+// Flags: --expose-wasm --wasm-test-streaming --no-stress-opt
+
+load("test/message/wasm-no-name-async.js");
diff --git a/deps/v8/test/message/wasm-no-name-streaming.out b/deps/v8/test/message/wasm-no-name-streaming.out
new file mode 100644
index 0000000000..20bf178e26
--- /dev/null
+++ b/deps/v8/test/message/wasm-no-name-streaming.out
@@ -0,0 +1,4 @@
+RuntimeError: unreachable
+ at wasm-function[0]:1
+ at pair (test/message/wasm-no-name-async.js:18:27)
+ at promise.then.result (test/mjsunit/mjsunit.js:576:15)