From 2883c855e0105b51e5c8020d21458af109ffe3d4 Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Thu, 5 Mar 2020 10:49:19 -0800 Subject: deps: update V8 to 8.1.307.20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaƫl Zasso Reviewed-By: Jiawen Geng Reviewed-By: Ruben Bridgewater --- deps/v8/test/mjsunit/regress/regress-crbug-1041251.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 deps/v8/test/mjsunit/regress/regress-crbug-1041251.js (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-1041251.js') 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); -- cgit v1.2.1