Closed
Bug 476082
Opened 16 years ago
Closed 16 years ago
trap() on JSOP_TYPEOF causes "typeof x" to throw ReferenceError incorrectly
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Assigned: igor)
References
Details
(Keywords: testcase)
js> f = function() { typeof x; }
function () {
typeof x;
}
js> f()
js> dis(f)
flags: LAMBDA INTERPRETED
main:
00000: name "x"
00003: typeof <-- trap will go here
00004: pop
00005: stop
Source notes:
js> trap(f, 3, '')
js> f()
typein:1: ReferenceError: x is not defined
Assignee | ||
Updated•16 years ago
|
Assignee: general → igor
Comment 1•16 years ago
|
||
function f() {
typeof x;
}
trap(f, 3, '');
f();
Patch v2 in bug 463239 fixes this.
Depends on: 463239
Reporter | ||
Comment 2•16 years ago
|
||
WFM. Fixed by the patch in bug 476082, I guess.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•