TypeInference: "[infer failure] Missing type" with try..catch, jsop_deffun

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
8 years ago
8 years ago

People

(Reporter: jandem, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
--
function f() {
    for(var i=0; i<3; i++) {
        try {
            g();
        } catch(e) {
            print(e);
        }
        function g() {
            print('g');
        }
    }
}
f();
--
Expected output:
ReferenceError: g is not defined
g
g

Interpreter output:
ReferenceError: g is not defined
[infer failure] Missing type at #3:00012 pushed 0: 156:#2
This works for me now, the g() is a CALLNAME whose pushed values we no longer track.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.