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

Unified Diff: src/harmony-array.js

Issue 1095573002: Revert of Migrate error messages, part 2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/generator.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-array.js
diff --git a/src/harmony-array.js b/src/harmony-array.js
index dc7d71fcb4dca34110756793db4953325ca95b8e..cdd63be41611c1c17ad85eab60ede0fababa7868 100644
--- a/src/harmony-array.js
+++ b/src/harmony-array.js
@@ -18,7 +18,7 @@
var length = ToInteger(array.length);
if (!IS_SPEC_FUNCTION(predicate)) {
- throw MakeTypeError(kCalledNonCallable, predicate);
+ throw MakeTypeError('called_non_callable', [predicate]);
}
var thisArg;
@@ -55,7 +55,7 @@
var length = ToInteger(array.length);
if (!IS_SPEC_FUNCTION(predicate)) {
- throw MakeTypeError(kCalledNonCallable, predicate);
+ throw MakeTypeError('called_non_callable', [predicate]);
}
var thisArg;
@@ -134,7 +134,7 @@
if (mapping) {
if (!IS_SPEC_FUNCTION(mapfn)) {
- throw MakeTypeError(kCalledNonCallable, mapfn);
+ throw MakeTypeError('called_non_callable', [ mapfn ]);
} else if (IS_NULL_OR_UNDEFINED(receiver)) {
receiver = %GetDefaultReceiver(mapfn) || receiver;
} else if (!IS_SPEC_OBJECT(receiver) && %IsSloppyModeFunction(mapfn)) {
« no previous file with comments | « src/generator.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698