From df2cb021703281f67c80fe8cb181bb114c3d6c8f Mon Sep 17 00:00:00 2001
From: test262-automation <test262-automation@bocoup.com>
Date: Wed, 28 Nov 2018 19:08:28 +0000
Subject: [PATCH] [v8-test262-automation] Changes from
 https://github.com/v8/v8.git at sha bf5cc562 on Wed Nov 28 2018 19:07:54
 GMT+0000 (Coordinated Universal Time)

---
 .../v8/mjsunit/regress/regress-748069.js                  | 3 +++
 .../v8/mjsunit/regress/regress-908975.js                  | 6 ++++++
 implementation-contributed/v8/wasm-js/testharness.js      | 8 +++++++-
 3 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 implementation-contributed/v8/mjsunit/regress/regress-908975.js

diff --git a/implementation-contributed/v8/mjsunit/regress/regress-748069.js b/implementation-contributed/v8/mjsunit/regress/regress-748069.js
index e652cca672..86c2f8f5ec 100644
--- a/implementation-contributed/v8/mjsunit/regress/regress-748069.js
+++ b/implementation-contributed/v8/mjsunit/regress/regress-748069.js
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+// This test gets very slow with slow asserts.
+// Flags: --noenable-slow-asserts
+
 try {
   var a = 'a'.repeat(1 << 28);
 } catch (e) {
diff --git a/implementation-contributed/v8/mjsunit/regress/regress-908975.js b/implementation-contributed/v8/mjsunit/regress/regress-908975.js
new file mode 100644
index 0000000000..b80f4ce9c4
--- /dev/null
+++ b/implementation-contributed/v8/mjsunit/regress/regress-908975.js
@@ -0,0 +1,6 @@
+// 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.
+
+[] = [];
+a => 0
diff --git a/implementation-contributed/v8/wasm-js/testharness.js b/implementation-contributed/v8/wasm-js/testharness.js
index ecaf0b82d9..904a973519 100644
--- a/implementation-contributed/v8/wasm-js/testharness.js
+++ b/implementation-contributed/v8/wasm-js/testharness.js
@@ -19,7 +19,7 @@ let lastPromise = Promise.resolve();
 
 function test(func, description) {
   let maybeErr;
-  try { func({unreached_func: assert_unreached}); }
+  try { func({unreached_func: unreached_func}); }
   catch(e) { maybeErr = e; }
   if (typeof maybeErr !== 'undefined') {
     console.log(`${description}: FAIL. ${maybeErr}`);
@@ -98,6 +98,12 @@ function assert_array_equals(actual, expected, description) {
   }
 }
 
+function unreached_func(msg) {
+  return function trap() {
+    assert_unreached(msg);
+  };
+}
+
 function assert_unreached(description) {
   throw new Error(`unreachable:\n${description}`);
 }
-- 
GitLab