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

Unified Diff: src/runtime.js

Issue 1294803004: Native context: run prologue.js before runtime.js (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: also change BUILD.gn Created 5 years, 4 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/prologue.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 4de9c2997df1a5debf4341aaef8fdb6d212b2902..20b608e9072430597cbdb5607ceb0f0237709522 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -897,6 +897,7 @@ function ToPositiveInteger(x, rangeErrorIndex) {
%FunctionSetPrototype(GlobalArray, new GlobalArray(0));
// ----------------------------------------------------------------------------
+// Exports
$concatIterableToArray = ConcatIterableToArray;
$defaultNumber = DefaultNumber;
@@ -915,4 +916,11 @@ $toPositiveInteger = ToPositiveInteger;
$toPrimitive = ToPrimitive;
$toString = ToString;
+utils.ExportToRuntime(function(to) {
+ to.ToNumber = $toNumber;
+ to.ToString = $toString;
+ to.ToInteger = $toInteger;
+ to.ToLength = $toLength;
+});
+
})
« no previous file with comments | « src/prologue.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698