Implementing String.prototype.toString and String.prototype.valueOf built-in routines.

This commit is contained in:
Ruben Ayrapetyan
2014-09-25 21:04:13 +04:00
parent 5bee6cad0f
commit ba2eeb84af
3 changed files with 50 additions and 18 deletions
+4
View File
@@ -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');