diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-11-03 13:20:30 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-11-05 20:01:39 +0100 |
commit | 5c2d555b29d99f9d1f484fd46eff33b42ee9c11f (patch) | |
tree | 8f1c2ee1a4decda1494c6818f8a754f0b302d96b /deps/v8/test | |
parent | 7e1b178fb637abc68b1d4da1363a19db7ad02d6c (diff) | |
download | android-node-v8-5c2d555b29d99f9d1f484fd46eff33b42ee9c11f.tar.gz android-node-v8-5c2d555b29d99f9d1f484fd46eff33b42ee9c11f.tar.bz2 android-node-v8-5c2d555b29d99f9d1f484fd46eff33b42ee9c11f.zip |
deps: patch V8 to 7.0.276.35
Refs: https://github.com/v8/v8/compare/7.0.276.32...7.0.276.35
PR-URL: https://github.com/nodejs/node/pull/24056
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'deps/v8/test')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-897512.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-897512.js b/deps/v8/test/mjsunit/regress/regress-897512.js new file mode 100644 index 0000000000..0e676a06c2 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-897512.js @@ -0,0 +1,24 @@ +// 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. + +// Fill up the Array prototype's elements. +for (let i = 0; i < 100; i++) Array.prototype.unshift(3.14); + +// Create a holey double elements array. +const o31 = [1.1]; +o31[37] = 2.2; + +// Concat converts to dictionary elements. +const o51 = o31.concat(false); + +// Set one element to undefined to trigger the movement bug. +o51[0] = undefined; + +assertEquals(o51.length, 39); + +// Sort triggers the bug. +o51.sort(); + +// TODO(chromium:897512): The length should be 39. +assertEquals(o51.length, 101); |