Index: src/js/runtime.js |
diff --git a/src/js/runtime.js b/src/js/runtime.js |
index 5a4c75a42a4db01b24f76044654640977f9a561d..6de87d5076787e515afe88de7d79d8f03885244f 100644 |
--- a/src/js/runtime.js |
+++ b/src/js/runtime.js |
@@ -11,10 +11,8 @@ |
// The following declarations are shared with other native JS files. |
// They are all declared at this one spot to avoid redeclaration errors. |
-var $NaN; |
var $sameValue; |
var $sameValueZero; |
-var $toPositiveInteger; |
var harmony_tolength = false; |
@@ -234,10 +232,12 @@ function ToPositiveInteger(x, rangeErrorIndex) { |
// ---------------------------------------------------------------------------- |
// Exports |
-$NaN = %GetRootNaN(); |
$sameValue = SameValue; |
$sameValueZero = SameValueZero; |
-$toPositiveInteger = ToPositiveInteger; |
+ |
+utils.Export(function(to) { |
+ to.ToPositiveInteger = ToPositiveInteger; |
+}); |
%InstallToContext([ |
"apply_prepare_builtin", APPLY_PREPARE, |