Closed Bug 1494758 Opened 7 years ago Closed 6 years ago

Debugger: jit-test/tests/debug/Environment-setVariable-WouldRun.js is messed up

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

Attachments

(1 file)

The comment says: // setVariable triggering a setter doesn't crash or explode. // It should throw WouldRunDebuggee, but that isn't implemented yet. D'oh! This is incorrect; it is implemented. But if you change the test to expect that exception, the test fails because in this test case: test("with ({set x(v) {}}) eval(d());"); The test code `frame.environment.find("x")` does not find the environment containing the binding for `x`. That's because the test is looking in the environment of the function `d`, which is not inside the `with` block. D'oh again! The actual Debugger API is working correctly; fix is test-only.
Assigning this bug to Jason since he seems to be working on it.
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Priority: -- → P2
Pushed by jorendorff@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5cbc49176665 Fix a multiply-busted Debugger test. r=jimb
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: