Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: src/js/runtime.js

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/prologue.js ('k') | src/js/typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « src/js/prologue.js ('k') | src/js/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698