Index: src/array.js |
diff --git a/src/array.js b/src/array.js |
index 2fa1f1b6c8798830568b400592f21462b4083835..e0a1fc98a655053c42e5dbadcb19032d5210e237 100644 |
--- a/src/array.js |
+++ b/src/array.js |
@@ -372,7 +372,7 @@ |
func = array.join; |
} |
if (!IS_SPEC_FUNCTION(func)) { |
- return %_CallFunction(array, $objectToString); |
+ return %_CallFunction(array, ObjectToString); |
} |
return %_CallFunction(array, func); |
} |
@@ -447,7 +447,7 @@ |
n--; |
var value = array[n]; |
- $delete(array, ToName(n), true); |
+ Delete(array, ToName(n), true); |
array.length = n; |
return value; |
} |
@@ -620,7 +620,7 @@ |
return; |
} |
- if ($objectIsSealed(array)) throw MakeTypeError(kArrayFunctionsOnSealed); |
+ if (ObjectIsSealed(array)) throw MakeTypeError(kArrayFunctionsOnSealed); |
if (%IsObserved(array)) |
return ObservedArrayShift.call(array, len); |
@@ -671,7 +671,7 @@ |
var num_arguments = %_ArgumentsLength(); |
if (len > 0 && UseSparseVariant(array, len, IS_ARRAY(array), len) && |
- !$objectIsSealed(array)) { |
+ !ObjectIsSealed(array)) { |
SparseMove(array, 0, 0, len, num_arguments); |
} else { |
SimpleMove(array, 0, 0, len, num_arguments); |
@@ -817,9 +817,9 @@ |
deleted_elements.length = del_count; |
var num_elements_to_add = num_arguments > 2 ? num_arguments - 2 : 0; |
- if (del_count != num_elements_to_add && $objectIsSealed(array)) { |
+ if (del_count != num_elements_to_add && ObjectIsSealed(array)) { |
throw MakeTypeError(kArrayFunctionsOnSealed); |
- } else if (del_count > 0 && $objectIsFrozen(array)) { |
+ } else if (del_count > 0 && ObjectIsFrozen(array)) { |
throw MakeTypeError(kArrayFunctionsOnFrozen); |
} |
@@ -1523,7 +1523,7 @@ |
DONT_ENUM | READ_ONLY); |
// Set up non-enumerable functions on the Array object. |
-$installFunctions(GlobalArray, DONT_ENUM, [ |
+InstallFunctions(GlobalArray, DONT_ENUM, [ |
"isArray", ArrayIsArray |
]); |
@@ -1544,7 +1544,7 @@ |
// set their names. |
// Manipulate the length of some of the functions to meet |
// expectations set by ECMA-262 or Mozilla. |
-$installFunctions(GlobalArray.prototype, DONT_ENUM, [ |
+InstallFunctions(GlobalArray.prototype, DONT_ENUM, [ |
"toString", getFunction("toString", ArrayToString), |
"toLocaleString", getFunction("toLocaleString", ArrayToLocaleString), |
"join", getFunction("join", ArrayJoin), |
@@ -1573,7 +1573,7 @@ |
// The internal Array prototype doesn't need to be fancy, since it's never |
// exposed to user code. |
// Adding only the functions that are actually used. |
-$setUpLockedPrototype(InternalArray, GlobalArray(), [ |
+SetUpLockedPrototype(InternalArray, GlobalArray(), [ |
"concat", getFunction("concat", ArrayConcatJS), |
"indexOf", getFunction("indexOf", ArrayIndexOf), |
"join", getFunction("join", ArrayJoin), |
@@ -1582,7 +1582,7 @@ |
"splice", getFunction("splice", ArraySplice) |
]); |
-$setUpLockedPrototype(InternalPackedArray, GlobalArray(), [ |
+SetUpLockedPrototype(InternalPackedArray, GlobalArray(), [ |
"join", getFunction("join", ArrayJoin), |
"pop", getFunction("pop", ArrayPop), |
"push", getFunction("push", ArrayPush) |