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

Unified Diff: src/js/collection-iterator.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/collection-iterator.js
diff --git a/src/js/collection-iterator.js b/src/js/collection-iterator.js
index 621d7266fc69bdeffb2d6d8cd949c062346d66c9..173f273f9bd0abd235dcf837e64ddf61ec01d42f 100644
--- a/src/js/collection-iterator.js
+++ b/src/js/collection-iterator.js
@@ -14,15 +14,10 @@
var GlobalMap = global.Map;
var GlobalSet = global.Set;
var iteratorSymbol = utils.ImportNow("iterator_symbol");
-var MakeTypeError;
var MapIterator = utils.ImportNow("MapIterator");
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
var SetIterator = utils.ImportNow("SetIterator");
-utils.Import(function(from) {
- MakeTypeError = from.MakeTypeError;
-});
-
// -------------------------------------------------------------------
function SetIteratorConstructor(set, kind) {
@@ -32,7 +27,7 @@ function SetIteratorConstructor(set, kind) {
function SetIteratorNextJS() {
if (!IS_SET_ITERATOR(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Set Iterator.prototype.next', this);
}
@@ -57,7 +52,7 @@ function SetIteratorNextJS() {
function SetEntries() {
if (!IS_SET(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Set.prototype.entries', this);
}
return new SetIterator(this, ITERATOR_KIND_ENTRIES);
@@ -66,7 +61,7 @@ function SetEntries() {
function SetValues() {
if (!IS_SET(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Set.prototype.values', this);
}
return new SetIterator(this, ITERATOR_KIND_VALUES);
@@ -100,7 +95,7 @@ function MapIteratorConstructor(map, kind) {
function MapIteratorNextJS() {
if (!IS_MAP_ITERATOR(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Map Iterator.prototype.next', this);
}
@@ -126,7 +121,7 @@ function MapIteratorNextJS() {
function MapEntries() {
if (!IS_MAP(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Map.prototype.entries', this);
}
return new MapIterator(this, ITERATOR_KIND_ENTRIES);
@@ -135,7 +130,7 @@ function MapEntries() {
function MapKeys() {
if (!IS_MAP(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Map.prototype.keys', this);
}
return new MapIterator(this, ITERATOR_KIND_KEYS);
@@ -144,7 +139,7 @@ function MapKeys() {
function MapValues() {
if (!IS_MAP(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
+ throw %make_type_error(kIncompatibleMethodReceiver,
'Map.prototype.values', this);
}
return new MapIterator(this, ITERATOR_KIND_VALUES);
« src/bootstrapper.cc ('K') | « src/js/collection.js ('k') | src/js/harmony-atomics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698