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