Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index b20639cde61d2d7a204abaceab06dea87a8b448b..e4cb4ff312a86f8e09e757ec4114d2a9f7b48d49 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -379,7 +379,7 @@ |
if (!IS_FUNCTION(delegate)) { |
var callsite = %RenderCallSite(); |
if (callsite == "") callsite = typeof this; |
- throw %MakeTypeError(kCalledNonCallable, callsite); |
+ throw %MakeTypeError('called_non_callable', [callsite]); |
} |
return %Apply(delegate, this, arguments, 0, %_ArgumentsLength()); |
} |
@@ -390,7 +390,7 @@ |
if (!IS_FUNCTION(delegate)) { |
var callsite = %RenderCallSite(); |
if (callsite == "") callsite = typeof this; |
- throw %MakeTypeError(kCalledNonCallable, callsite); |
+ throw %MakeTypeError('called_non_callable', [callsite]); |
} |
return %Apply(delegate, this, arguments, 0, %_ArgumentsLength()); |
} |
@@ -463,7 +463,7 @@ |
} |
if (!IS_SPEC_FUNCTION(this)) { |
- throw %MakeTypeError(kCalledNonCallable, %ToString(this)); |
+ throw %MakeTypeError('called_non_callable', [ %ToString(this) ]); |
} |
if (!IS_SPEC_OBJECT(args)) { |
@@ -503,7 +503,7 @@ |
if (!ctorOk) { |
if (!IS_SPEC_FUNCTION(this)) { |
- throw %MakeTypeError(kCalledNonCallable, %ToString(this)); |
+ throw %MakeTypeError('called_non_callable', [ %ToString(this) ]); |
} else { |
throw %MakeTypeError('not_constructor', [ %ToString(this) ]); |
} |
@@ -511,7 +511,7 @@ |
if (!newTargetOk) { |
if (!IS_SPEC_FUNCTION(newTarget)) { |
- throw %MakeTypeError(kCalledNonCallable, %ToString(newTarget)); |
+ throw %MakeTypeError('called_non_callable', [ %ToString(newTarget) ]); |
} else { |
throw %MakeTypeError('not_constructor', [ %ToString(newTarget) ]); |
} |