Index: src/third_party/fdlibm/fdlibm.js |
diff --git a/src/third_party/fdlibm/fdlibm.js b/src/third_party/fdlibm/fdlibm.js |
index 6a64c6ca52697118fdb2fa0b6121802d03173d0e..a5e789f38a59d56083c82338aca4cd59bbb7aee0 100644 |
--- a/src/third_party/fdlibm/fdlibm.js |
+++ b/src/third_party/fdlibm/fdlibm.js |
@@ -28,6 +28,7 @@ |
// ------------------------------------------------------------------- |
// Imports |
+var GlobalFloat64Array = global.Float64Array; |
var GlobalMath = global.Math; |
var MathAbs; |
var MathExp; |
@@ -39,9 +40,9 @@ utils.Import(function(from) { |
MathExp = from.MathExp; |
}); |
-utils.SetupTypedArray(function(arg) { |
- rempio2result = arg; |
-}); |
+utils.CreateDoubleResultArray = function(global) { |
+ rempio2result = new GlobalFloat64Array(2); |
+}; |
// ------------------------------------------------------------------- |