Commit e08d1ebe authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[builtins] add test for Array.shift on holey double array

Adding the missing test for https://chromium-review.googlesource.com/c/603717.

Bug: chromium:752722
Change-Id: I8a4ca161b691532e481ebe9f7d05c306beb4c90a
Reviewed-on: https://chromium-review.googlesource.com/604792Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47212}
parent 2e2069cd
......@@ -34,6 +34,21 @@
test();
})();
(function() {
function doShift(a) { return a.shift(); }
function test() {
var a = [,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16.1];
assertEquals(undefined, doShift(a));
assertEquals([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16.1], a);
}
test();
test();
%OptimizeFunctionOnNextCall(doShift);
test();
})();
(function() {
function doShift(a) { return a.shift(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment