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

Unified Diff: src/js/spread.js

Issue 2222893002: Move family of MakeError functions to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix in prologue.js Created 4 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
Index: src/js/spread.js
diff --git a/src/js/spread.js b/src/js/spread.js
index 82ea83959853634d274089d13b54bc4db6918b01..39b12e7a8e0dbf4d9c3234a970583b14071527be 100644
--- a/src/js/spread.js
+++ b/src/js/spread.js
@@ -9,11 +9,6 @@
// -------------------------------------------------------------------
// Imports
var InternalArray = utils.InternalArray;
-var MakeTypeError;
-
-utils.Import(function(from) {
- MakeTypeError = from.MakeTypeError;
-});
// -------------------------------------------------------------------
@@ -35,7 +30,7 @@ function SpreadArguments() {
function SpreadIterable(collection) {
if (IS_NULL_OR_UNDEFINED(collection)) {
- throw MakeTypeError(kNotIterable, collection);
+ throw %make_type_error(kNotIterable, collection);
}
var args = new InternalArray();
« src/bootstrapper.cc ('K') | « src/js/runtime.js ('k') | src/js/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698