Commit f47f88ad authored by domenic's avatar domenic Committed by Commit bot

Add shift to InternalArray and InternalPackedArray

It's useful for queue-like data structures.

R=yangguo@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1117713002

Cr-Commit-Position: refs/heads/master@{#28146}
parent 3fa1b606
......@@ -1579,13 +1579,15 @@ SetUpLockedPrototype(InternalArray, GlobalArray(), [
"join", getFunction("join", ArrayJoin),
"pop", getFunction("pop", ArrayPop),
"push", getFunction("push", ArrayPush),
"shift", getFunction("shift", ArrayShift),
"splice", getFunction("splice", ArraySplice)
]);
SetUpLockedPrototype(InternalPackedArray, GlobalArray(), [
"join", getFunction("join", ArrayJoin),
"pop", getFunction("pop", ArrayPop),
"push", getFunction("push", ArrayPush)
"push", getFunction("push", ArrayPush),
"shift", getFunction("shift", ArrayShift)
]);
$arrayConcat = ArrayConcatJS;
......
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