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

Unified Diff: src/runtime.js

Issue 1235153006: [es6] re-implement rest parameters via desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactor Scope::TempScope Created 5 years, 5 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/preparser.h ('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 dd776dbc8c354722c692c3580914398e5de26d30..33684163f86a55c0e65ed9e612d0607ebbcb14ca 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -63,6 +63,8 @@ var TO_NUMBER;
var TO_STRING;
var TO_NAME;
+var $createEmptyArray;
+var $createStrongEmptyArray;
var $defaultNumber;
var $defaultString;
var $NaN;
@@ -984,6 +986,15 @@ function ToPositiveInteger(x, rangeErrorIndex) {
return i;
}
+function CreateEmptyArray() {
+ return [];
+}
+
+function CreateStrongEmptyArray() {
+ "use strong";
+ return [];
+}
+
//----------------------------------------------------------------------------
// NOTE: Setting the prototype for Array must take place as early as
@@ -1014,5 +1025,7 @@ $toPositiveInteger = ToPositiveInteger;
$toPrimitive = ToPrimitive;
$toString = ToString;
$toUint32 = ToUint32;
+$createEmptyArray = CreateEmptyArray
+$createStrongEmptyArray = CreateStrongEmptyArray;
})
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698