Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 5e6516eee07d6249b100097dbe17a31b1e20db44..94133bff7fe05dfd496a1e42172bc679aca140aa 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -32,7 +32,7 @@ |
var $toCompletePropertyDescriptor; |
var $toNameArray; |
-(function(global, utils) { |
+(function(global, shared, exports) { |
%CheckIsBootstrapping(); |
@@ -44,15 +44,7 @@ |
var GlobalFunction = global.Function; |
var GlobalNumber = global.Number; |
var GlobalObject = global.Object; |
-var InternalArray = utils.InternalArray; |
- |
-var MathAbs; |
-var StringIndexOf; |
- |
-utils.Import(function(from) { |
- MathAbs = from.MathAbs; |
- StringIndexOf = from.StringIndexOf; |
-}); |
+var InternalArray = shared.InternalArray; |
// ---------------------------------------------------------------------------- |
@@ -1705,7 +1697,7 @@ |
if (NumberIsFinite(number)) { |
var integral = TO_INTEGER(number); |
if (integral == number) { |
- return MathAbs(integral) <= GlobalNumber.MAX_SAFE_INTEGER; |
+ return $abs(integral) <= GlobalNumber.MAX_SAFE_INTEGER; |
} |
} |
return false; |
@@ -1890,7 +1882,7 @@ |
// If the formal parameters string include ) - an illegal |
// character - it may make the combined function expression |
// compile. We avoid this problem by checking for this early on. |
- if (%_CallFunction(p, ')', StringIndexOf) != -1) { |
+ if (%_CallFunction(p, ')', $stringIndexOf) != -1) { |
throw MakeSyntaxError(kParenthesisInArgString); |
} |
// If the formal parameters include an unbalanced block comment, the |