Index: src/math.js |
diff --git a/src/math.js b/src/math.js |
index 633a5d02c45d37ef830afbb221c8e5fc5138e08c..ee83709dd67c8828658e69be625336c22be42c2e 100644 |
--- a/src/math.js |
+++ b/src/math.js |
@@ -4,13 +4,7 @@ |
var rngstate; // Initialized to a Uint32Array during genesis. |
-var $abs; |
-var $exp; |
-var $floor; |
-var $max; |
-var $min; |
- |
-(function(global, shared, exports) { |
+(function(global, utils) { |
"use strict"; |
@@ -20,7 +14,7 @@ var $min; |
// Imports |
var GlobalObject = global.Object; |
-var InternalArray = shared.InternalArray; |
+var InternalArray = utils.InternalArray; |
//------------------------------------------------------------------- |
@@ -357,11 +351,15 @@ $installFunctions(Math, DONT_ENUM, [ |
%SetInlineBuiltinFlag(MathSqrtJS); |
%SetInlineBuiltinFlag(MathTrunc); |
-// Expose to the global scope. |
-$abs = MathAbs; |
-$exp = MathExp; |
-$floor = MathFloorJS; |
-$max = MathMax; |
-$min = MathMin; |
+// ------------------------------------------------------------------- |
+// Exports |
+ |
+utils.Export(function(to) { |
+ to.MathAbs = MathAbs; |
+ to.MathExp = MathExp; |
+ to.MathFloor = MathFloorJS; |
+ to.MathMax = MathMax; |
+ to.MathMin = MathMin; |
+}); |
}) |