Index: src/third_party/fdlibm/fdlibm.js |
diff --git a/src/third_party/fdlibm/fdlibm.js b/src/third_party/fdlibm/fdlibm.js |
index f5ef16f2b456ad84e8df7c6c0eb175b1657fe6b2..360712a9d3ea1e5a798877752c6cb874a8b54af0 100644 |
--- a/src/third_party/fdlibm/fdlibm.js |
+++ b/src/third_party/fdlibm/fdlibm.js |
@@ -23,12 +23,12 @@ |
// rempio2result is used as a container for return values of %RemPiO2. It is |
// initialized to a two-element Float64Array during genesis. |
-"use strict"; |
- |
var kMath; |
var rempio2result; |
(function() { |
+ |
+"use strict"; |
const INVPIO2 = kMath[0]; |
const PIO2_1 = kMath[1]; |
@@ -1004,7 +1004,11 @@ function MathLog2(x) { |
return t1 + t2; |
} |
-InstallFunctions($Math, DONT_ENUM, $Array( |
+//------------------------------------------------------------------- |
+ |
+%CheckIsBootstrapping(); |
+ |
+InstallFunctions(global.Math, DONT_ENUM, $Array( |
"cos", MathCos, |
"sin", MathSin, |
"tan", MathTan, |