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)
Core
JavaScript Engine
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.
Assignee | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
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
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•