summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-1041251.js
diff options
context:
space:
mode:
authorMatheus Marchini <mmarchini@netflix.com>2020-03-05 10:49:19 -0800
committerMatheus Marchini <mmarchini@netflix.com>2020-03-18 16:23:22 -0700
commit2883c855e0105b51e5c8020d21458af109ffe3d4 (patch)
tree26777aad0a398e9f7755c8b65ac76827fe352a81 /deps/v8/test/mjsunit/regress/regress-crbug-1041251.js
parent5f0af2af2a67216e00fe07ccda11e889d14abfcd (diff)
downloadnode-new-2883c855e0105b51e5c8020d21458af109ffe3d4.tar.gz
deps: update V8 to 8.1.307.20
PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-1041251.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-1041251.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-1041251.js b/deps/v8/test/mjsunit/regress/regress-crbug-1041251.js
new file mode 100644
index 0000000000..8e1628876d
--- /dev/null
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-1041251.js
@@ -0,0 +1,14 @@
+// Copyright 2020 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.
+
+let v0 = [0, 1];
+v0.constructor = {
+ [Symbol.species]: function() {
+ let v1 = [2];
+ Object.defineProperty(v1, "length", {writable: false});
+ return v1;
+ }
+}
+
+assertThrows(() => Array.prototype.map.call(v0, function() {}), TypeError);