| Index: src/string.js
|
| ===================================================================
|
| --- src/string.js (revision 457)
|
| +++ src/string.js (working copy)
|
| @@ -46,7 +46,7 @@
|
|
|
| // ECMA-262 section 15.5.4.2
|
| function StringToString() {
|
| - if (!IS_STRING(this) && %ClassOf(this) !== 'String')
|
| + if (!IS_STRING(this) && !%IsStringClass(this))
|
| throw new $TypeError('String.prototype.toString is not generic');
|
| return %_ValueOf(this);
|
| }
|
| @@ -54,7 +54,7 @@
|
|
|
| // ECMA-262 section 15.5.4.3
|
| function StringValueOf() {
|
| - if (!IS_STRING(this) && %ClassOf(this) !== 'String')
|
| + if (!IS_STRING(this) && !%IsStringClass(this))
|
| throw new $TypeError('String.prototype.valueOf is not generic');
|
| return %_ValueOf(this);
|
| }
|
|
|