Closed
Bug 617949
Opened 15 years ago
Closed 13 years ago
Different TypeError for instanceOfWithKnownTypes.js in methodjit
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jandem, Unassigned)
References
Details
Test case:
---
function f() {
var o = {}, p = {};
return o instanceof p;
}
f();
---
./js:
test1.js:3: TypeError: invalid 'instanceof' operand p
./js -m:
test1.js:3: TypeError: 'prototype' property of p is not an object
I don't know how important this is. For testing it'd be nice to have the interpreter and JITs generate the same error messages. And the second message is a bit obscure.
Comment 1•13 years ago
|
||
WFM at least as far back as mozilla-central rev d796fb18f555.
I get "TypeError: invalid 'instanceof' operand p"
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•