Closed
Bug 1142310
Opened 10 years ago
Closed 10 years ago
Stop parenting scripted functions to non-globals
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
| Tracking | Status | |
|---|---|---|
| firefox39 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(2 files)
|
4.06 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
|
2.50 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
This is already done for native functions, just scripted ones left.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8577371 -
Flags: review?(jwalden+bmo)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8577372 -
Flags: review?(jwalden+bmo)
| Assignee | ||
Comment 3•10 years ago
|
||
Jeff, I basically ignored the silly framescript setup and parented everything to globals anyway. Hope that's ok.
Comment 4•10 years ago
|
||
Comment on attachment 8577371 [details] [diff] [review]
part 1. Stop parenting scripted functions created via the NewFunction APIs to non-globals
Review of attachment 8577371 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/jsfun.h
@@ +515,5 @@
> NewObjectKind newKind = GenericObject,
> JSFunction::Flags flags = JSFunction::NATIVE_CTOR);
>
> // Allocate a new scripted function. If null is passed for
> +// enclosingDynamicScope, the global will be used. In all cases the parent of
"If enclosingDynamicScope is null" probably wraps better, more readable.
Attachment #8577371 -
Flags: review?(jwalden+bmo) → review+
Updated•10 years ago
|
Attachment #8577372 -
Flags: review?(jwalden+bmo) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
> "If enclosingDynamicScope is null" probably wraps better, more readable.
Done.
| Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/67298a640395
https://hg.mozilla.org/mozilla-central/rev/91b3f8e902a6
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•