aboutsummaryrefslogtreecommitdiffstats
path: root/tests/string.1.js
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2012-05-10 12:14:20 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2012-05-10 12:14:20 +0200
commit14ce5bb3897d0c19beddcf4b0bdabc8a05e310f0 (patch)
tree07e82e42ea4a954e8e26e88e4b276c52881f0f0b /tests/string.1.js
parentc75421ee43f22df8c2405302e6118548c97f13bc (diff)
Fix constructors and some work on the String prototype.
Diffstat (limited to 'tests/string.1.js')
-rw-r--r--tests/string.1.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/string.1.js b/tests/string.1.js
index 1495552e33..5ae5535881 100644
--- a/tests/string.1.js
+++ b/tests/string.1.js
@@ -3,5 +3,11 @@ var s = String(123) + 1
print(s)
var s2 = new String(123)
-print(s2)
+print(s2, s2.toString, s2.toString())
+
+var s3 = String.prototype.constructor(321)
+print(s3)
+
+var s4 = new String.prototype.constructor(321)
+print(s4)