Closed
Bug 1061961
Opened 11 years ago
Closed 11 years ago
ScriptSourceObject::initFromOptions calls skipped
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: jimb, Assigned: jimb)
References
Details
Attachments
(1 file)
SpiderMonkey fails to call ScriptSourceObject::initFromOptions on ScriptSourceObjects created for XDR and for Function.prototype's script.
Attachment #8483067 -
Flags: review?(kvijayan)
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8483067 [details] [diff] [review]
Fully initialize ScriptSourceObjects built by XDR and for Function.prototype.
Switching reviewers, as Shu was involved in the conversation and has already looked at the patch a bit.
Attachment #8483067 -
Flags: review?(kvijayan) → review?(shu)
Comment 3•11 years ago
|
||
Comment on attachment 8483067 [details] [diff] [review]
Fully initialize ScriptSourceObjects built by XDR and for Function.prototype.
Review of attachment 8483067 [details] [diff] [review]:
-----------------------------------------------------------------
The fix looks fine to me.
IIUC, the only reason SourceScriptObject::create doesn't also initialize itself with options is because of off-thread parsing. How do you feel about removing create in favor of createWithOptions and createFromOffThread to make it harder to simply forget to initialize? No need to block landing this fix for the refactor though.
Attachment #8483067 -
Flags: review?(shu) → review+
Updated•11 years ago
|
Blocks: dbg-source
Assignee | ||
Comment 4•11 years ago
|
||
Assignee: nobody → jimb
Flags: in-testsuite+
Target Milestone: --- → mozilla35
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•