[jsdbg2] Debugger.Script.prototype should provide a startColumn getter
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: rjacob, Assigned: wartmanm)
References
Details
Attachments
(2 files)
|
6.72 KB,
patch
|
Details | Diff | Splinter Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•12 years ago
|
Updated•12 years ago
|
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
I copy-pasted the implementation of Debugger.Script.prototype.startLine, and added a test and documenation. To make it work, I made JSScript::column_ mandatory, like lineno_. The only place where lineno_ was set and it was not was in JSScript::fullyInitFromEmitter, which copies the line number from BytecodeEmitter::firstLine, which is itself set in BytecodeEmitter's constructors. I followed the easiest path and added a new column field to BytecodeEmitter and all of its constructors.
Updated•7 years ago
|
Comment 6•7 years ago
|
||
Failed to land:
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. applying /tmp/tmp7drD1q js/src/frontend/BytecodeEmitter.cpp Hunk #2 succeeded at 119 with fuzz 1 (offset -1 lines). Hunk #5 FAILED at 5749. 1 out of 5 hunks FAILED -- saving rejects to file js/src/frontend/BytecodeEmitter.cpp.rej abort: patch command failed: exited with status 256
Comment 7•7 years ago
|
||
Mattheww, i'd be happy to land your patch once it is updated and tests are green
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
That try push is a version of the patch rebased around the BytecodeEmitter conflict, which is a simple variable rename. I've asked Matthew to update the patch on Phabricator.
| Assignee | ||
Comment 10•7 years ago
|
||
The patch is updated now, sorry it took so long.
Comment 11•7 years ago
|
||
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07052ce569c3
Add Debugger.Script.prototype.startColumn r=jimb
Comment 12•7 years ago
|
||
| bugherder | ||
Description
•