Closed Bug 110903 Opened 24 years ago Closed 24 years ago

new script hook not called for fastloaded scripts

Categories

(Core :: JavaScript Engine, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: rginda, Assigned: rginda)

Details

Attachments

(1 file)

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?
reassigning to myself.
Assignee: brendan → rginda
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
Ignore the makefile change, that was my sloppy diff.
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
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 on attachment 58471 [details] [diff] [review] patch sr=shaver. Nice comment. =)
Attachment #58471 - Flags: superreview+
Comment on attachment 58471 [details] [diff] [review] patch r=rginda, I'll check it into the trunk.
Attachment #58471 - Flags: review+
checked into trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified Fixed -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: