blob: 2857a29cb39425b7852d173e1db8917efc29dae7 [file] [log] [blame]
Tests that we do ToString conversions correctly when String.prototype.valueOf is not what we wanted.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
hello
PASS "" + foo({toString:function() { debug("hello"); return 42; }}) is "42"
PASS successfullyParsed is true
TEST COMPLETE