Closed Bug 470173 Opened 16 years ago Closed 16 years ago

TM: "with" allows jitted code to overwrite consts

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 470176

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

const nine = 9; with({}) { for (b=0;b<5;++b) ++nine; } print('' + nine);

interpreter:   9
jit:          12

I think the JIT shouldn't be triggered at all, since the loop is inside a "with" block.
We don't trace JSOP_ENTERWITH or JSOP_LEAVEWITH but they're not in the loop here. Loops are traced, not whole programs or methods.

The patch for bug 465443 should have fixed this.

/be
Pushed to tracemonkey in revision 0ceae28c4c55, as fix for bug 470176 (duplicate).
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.