Closed
Bug 1468384
Opened 7 years ago
Closed 6 years ago
Debugger: Add Debugger.Script.isModule
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: evilpies, Assigned: jorendorff)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
No description provided.
Attachment #8985053 -
Attachment is patch: true
Attachment #8985053 -
Attachment mime type: text/x-patch → text/plain
Comment 1•7 years ago
|
||
Tom, should you ask Jim for review?
Flags: needinfo?(evilpies)
Priority: -- → P3
Jason Laster said that the devtools team would like to take this, I think.
Flags: needinfo?(evilpies)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8990457 [details]
Bug 1468384 - Add an .isModule getter to Debugger.Script.
https://reviewboard.mozilla.org/r/255530/#review262540
This needs a few more things, I hope minor.
- a line or two of documentation in js/src/doc/Debugger/Debugger.Script.md
- tests for what this should return in function and direct-eval code within a module.
- Please make the test use the onNewScript hook rather than the onDebuggerStatement hook. It happens earlier, so more chance to catch badness. You can avoid the `g.eval()` in isModule-01 by doing `g.parseModule("...");` instead.
Make sure that a test failure actually counts as a failure; onNewScript is special in that it can't throw exceptions, but they should be reported and logged as test failures anyway. If not, it's a bug (which can be filed and added to our backlog--not pressing).
Attachment #8990457 -
Flags: review?(jorendorff)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8990457 [details]
Bug 1468384 - Add an .isModule getter to Debugger.Script.
https://reviewboard.mozilla.org/r/255530/#review265218
r=me. Thanks!
::: js/src/jit-test/tests/debug/Script-isModule-01.js:11
(Diff revision 2)
> + assertEq(script.isModule, true);
> +};
> +const m = g.parseModule("");
> +m.declarationInstantiation();
> +m.evaluation();
> +
Assert that the onNewScript hook actually hit.
Attachment #8990457 -
Flags: review?(jorendorff) → review+
Comment hidden (mozreview-request) |
Updated•6 years ago
|
Attachment #8985053 -
Attachment is obsolete: true
Flags: needinfo?(jlaster)
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
r?jimb because Phabricator wants a review and doesn't want me to review a patch I posted.
Flags: needinfo?(loganfsmyth)
Assignee | ||
Updated•6 years ago
|
Attachment #8990457 -
Attachment is obsolete: true
Comment 12•6 years ago
|
||
Comment on attachment 9007588 [details]
Bug 1468384 - Add Debugger.Script.isModule. r=jorendorff
Jim Blandy :jimb has approved the revision.
Attachment #9007588 -
Flags: review+
Assignee | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Pushed by jorendorff@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/309721897c1c
Add Debugger.Script.isModule. r=jimb
Comment 15•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Assignee: nobody → jorendorff
You need to log in
before you can comment on or make changes to this bug.
Description
•