| Index: src/js/messages.js
|
| diff --git a/src/js/messages.js b/src/js/messages.js
|
| index 87852e8ded1c60e90d14c018db89d51034aed0b6..3bcbfe934fbb5938181dd61b10ae68c1d6b0d2ff 100644
|
| --- a/src/js/messages.js
|
| +++ b/src/js/messages.js
|
| @@ -143,7 +143,7 @@ function NoSideEffectsToString(obj) {
|
| }
|
| }
|
|
|
| - if (IS_SPEC_OBJECT(obj)) {
|
| + if (IS_RECEIVER(obj)) {
|
| // When internally formatting error objects, use a side-effects-free version
|
| // of Error.prototype.toString independent of the actually installed
|
| // toString method.
|
| @@ -939,7 +939,7 @@ utils.InstallFunctions(GlobalError.prototype, DONT_ENUM,
|
| ['toString', ErrorToString]);
|
|
|
| function ErrorToString() {
|
| - if (!IS_SPEC_OBJECT(this)) {
|
| + if (!IS_RECEIVER(this)) {
|
| throw MakeTypeError(kCalledOnNonObject, "Error.prototype.toString");
|
| }
|
|
|
|
|