summaryrefslogtreecommitdiff
path: root/deps/v8/test
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2018-11-09 12:12:17 +0100
committerMichaël Zasso <targos@protonmail.com>2018-11-11 20:04:40 +0100
commitf0f1a28c075d30b1621ec1cbb65623d3b4641eeb (patch)
treebcfaae7c6212aae42e42bcb5a42fce2112bafbb6 /deps/v8/test
parente83d7e8d88e48cb17a6517f0a85d6bc1480c9f3f (diff)
downloadandroid-node-v8-f0f1a28c075d30b1621ec1cbb65623d3b4641eeb.tar.gz
android-node-v8-f0f1a28c075d30b1621ec1cbb65623d3b4641eeb.tar.bz2
android-node-v8-f0f1a28c075d30b1621ec1cbb65623d3b4641eeb.zip
deps: patch V8 to 7.0.276.38
Refs: https://github.com/v8/v8/compare/7.0.276.36...7.0.276.38 PR-URL: https://github.com/nodejs/node/pull/24271 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/v8/test')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-897366.js15
-rw-r--r--deps/v8/test/mjsunit/wasm/async-compile.js7
2 files changed, 22 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-897366.js b/deps/v8/test/mjsunit/regress/regress-897366.js
new file mode 100644
index 0000000000..990e21590e
--- /dev/null
+++ b/deps/v8/test/mjsunit/regress/regress-897366.js
@@ -0,0 +1,15 @@
+// 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: --gc-interval=100
+
+let xs = [];
+for (let i = 0; i < 205; ++i) {
+ xs.push(i);
+}
+xs.sort((a, b) => {
+ xs.shift();
+ xs[xs.length] = -246;
+ return a - b;
+});
diff --git a/deps/v8/test/mjsunit/wasm/async-compile.js b/deps/v8/test/mjsunit/wasm/async-compile.js
index e7f87c30e9..39a339aae6 100644
--- a/deps/v8/test/mjsunit/wasm/async-compile.js
+++ b/deps/v8/test/mjsunit/wasm/async-compile.js
@@ -70,3 +70,10 @@ assertPromiseResult(async function badFunctionInTheMiddle() {
let buffer = builder.toBuffer();
await assertCompileError(buffer);
}());
+
+assertPromiseResult(async function importWithoutCode() {
+ // Regression test for https://crbug.com/898310.
+ let builder = new WasmModuleBuilder();
+ builder.addImport('m', 'q', kSig_i_i);
+ await builder.asyncInstantiate({'m': {'q': i => i}});
+}());