| Index: src/messages.js
|
| ===================================================================
|
| --- src/messages.js (revision 7676)
|
| +++ src/messages.js (working copy)
|
| @@ -1069,6 +1069,9 @@
|
| }
|
|
|
| function errorToString() {
|
| + if (IS_NULL_OR_UNDEFINED(this)) {
|
| + throw MakeTypeError("obj_ctor_property_non_object", ["toString"]);
|
| + }
|
| // This helper function is needed because access to properties on
|
| // the builtins object do not work inside of a catch clause.
|
| function isCyclicErrorMarker(o) { return o === cyclic_error_marker; }
|
|
|