Closed Bug 465472 Opened 16 years ago Closed 16 years ago

TM: lenient with unhelpful toString

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 465460

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

Interpreter and JIT give different results:

b.js:
for each (e in [0, 1, {}]) { print('' + {toString:function()e}); }

./js ~/b.js
0
1
b.js:1: TypeError: can't convert ({toString:(function () e)}) to primitive type

./js -j ~/b.js
0
1
[object Object]
This is all Brendan.
Flags: blocking1.9.1+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.