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

This commit is contained in:
Ruben Ayrapetyan committed 2014-09-25 21:04:24 +04:00
1 parent 5bee6cad0f
commit ba2eeb84af
3 files changed
+50 -18

No files matched your search

+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');