Closed
Bug 853541
Opened 11 years ago
Closed 9 years ago
Revert load() to be cwd-relative, add loadRelativeToScript()
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: sfink, Unassigned)
Details
Attachments
(1 file)
20.17 KB,
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
Bug 835552 broke sunspider, and doesn't match other JS shells. This bug will revert the load() part, but still add ways to do things script-relative.
Comment 1•11 years ago
|
||
Vindication! :P
Reporter | ||
Comment 2•11 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/028b8d687387
Comment 3•11 years ago
|
||
Hmm: Bug 853541 - Partially revert bug 835552, making load() be cwd-relative again. r=njn What you landed looks fine, but I probably would have asked for review on a patch like this. No biggie.
Reporter | ||
Comment 4•11 years ago
|
||
err... oops, my faulty memory said that I already did that. From you, even. When in fact, it looks like I never even uploaded a patch here. Uh... would you mind doing a post-facto review? This really should have a review, and I'm not at all sure it'll pass without comments. I'm tempted to back it out, in fact, but OTOH I don't want to introduc yet more churn.
Reporter | ||
Comment 5•11 years ago
|
||
This patch also fixes an ASan error where I was strcpy'ing an address to itself.
Attachment #729244 -
Flags: review?(n.nethercote)
Comment 6•11 years ago
|
||
Comment on attachment 729244 [details] [diff] [review] Partially revert bug 835552, making load() be cwd-relative again. Review of attachment 729244 [details] [diff] [review]: ----------------------------------------------------------------- Honest mistake; don't bother backing it out. ::: js/src/shell/js.cpp @@ +843,5 @@ > + return LoadScript(cx, argc, vp, false); > +} > + > +static JSBool > +LoadScriptRelativeToScript(JSContext *cx, unsigned argc, jsval *vp) Nit: I'd call this LoadRelativeToScript, to match loadRelativeToScript.
Attachment #729244 -
Flags: review?(n.nethercote) → review+
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Reporter | ||
Comment 7•9 years ago
|
||
Landed long ago as 028b8d687387
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•