Implementing String.prototype.toString and String.prototype.valueOf built-in routines.
This commit is contained in:
@@ -14,3 +14,7 @@
|
||||
|
||||
var a = new String ('abcd');
|
||||
var b = String.fromCharCode (97, 98, 99, 100);
|
||||
|
||||
assert (a + '' === 'abcd');
|
||||
assert (b + '' === 'abcd');
|
||||
assert (a + b === 'abcdabcd');
|
||||
|
||||
Reference in New Issue
Block a user