Closed Bug 1061961 Opened 11 years ago Closed 11 years ago

ScriptSourceObject::initFromOptions calls skipped

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

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)
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 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+
Assignee: nobody → jimb
Flags: in-testsuite+
Target Milestone: --- → mozilla35
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.

Attachment

General

Created:
Updated:
Size: