Closed
Bug 110903
Opened 24 years ago
Closed 24 years ago
new script hook not called for fastloaded scripts
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: rginda, Assigned: rginda)
Details
Attachments
(1 file)
|
6.67 KB,
patch
|
rginda
:
review+
shaver
:
superreview+
|
Details | Diff | Splinter Review |
patch by brendan coming up. I've tested debug/linux and noticed no new regressions.
Brendan, I've never seen the xdr code before, could you explain what's going on
with the script magic in the patch?
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
Ignore the makefile change, that was my sloppy diff.
Comment 4•24 years ago
|
||
I simply made the hasMagic out parameter optional: when null, js_XDRScript
reports magic-number-mismatch errors and fails; when non-null, it returns false
if the magic was not a known cookie via *hasMagic, true otherwise in *hasMagic
-- and succeeds (returns true).
I *thought* I wrote a comment in jsscript.h just before js_XDRScript's prototype
(yes, there it is! :-).
Rob, how about r=? Shaver'll sr= I bet.
/be
Comment 5•24 years ago
|
||
Forgot to say that each serialized script begins with a four-byte magic number,
or cookie, to help catch decoder vs. encoder version/bug mismatch (where either
the decoder is downrev and can't handle a new magic; or the two simply do not
agree on the order and content of bytes in a script's serialization, due to a
bug in their impls, or even in some surrounding serialization code that embeds a
JS script in a larger stream).
/be
Comment 6•24 years ago
|
||
Comment on attachment 58471 [details] [diff] [review]
patch
sr=shaver. Nice comment. =)
Attachment #58471 -
Flags: superreview+
| Assignee | ||
Comment 7•24 years ago
|
||
Comment on attachment 58471 [details] [diff] [review]
patch
r=rginda, I'll check it into the trunk.
Attachment #58471 -
Flags: review+
| Assignee | ||
Comment 8•24 years ago
|
||
checked into trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•