Closed
Bug 1458973
Opened 6 years ago
Closed 6 years ago
Rename {Rooted,Handle}ScriptSource to {Rooted,Handle}ScriptSourceObject.
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla62
People
(Reporter: arai, Assigned: arai)
Details
Attachments
(1 file)
34.61 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
We have ScriptSource and ScriptSourceObject classes, and the definition of {Rooted,Handle}ScriptSource is really confusing.
> typedef JS::Rooted<ScriptSourceObject*> RootedScriptSource;
> typedef JS::Handle<ScriptSourceObject*> HandleScriptSource;
they should be renamed to {Rooted,Handle}ScriptSourceObject, to clarify it's ScriptSourceObject, not ScriptSource.
(of course, ScriptSource is not GC thing and won't be rooted, but...)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #8972972 -
Flags: review?(jimb)
Comment 2•6 years ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #0) > (of course, ScriptSource is not GC thing and won't be rooted, but...) I think Rooted can be applied to anything with a `GCPolicy` specialization, which is not restricted to GC things, so it's not immediately obvious that Rooted<ScriptSource*> isn't a thing you can do.
Comment 3•6 years ago
|
||
Comment on attachment 8972972 [details] [diff] [review] Rename {Rooted,Handle}ScriptSource to {Rooted,Handle}ScriptSourceObject. Review of attachment 8972972 [details] [diff] [review]: ----------------------------------------------------------------- Thank you very much!
Attachment #8972972 -
Flags: review?(jimb) → review+
Assignee | ||
Comment 4•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4dc436553912f37245271228859ca880da76b335 Bug 1458973 - Rename {Rooted,Handle}ScriptSource to {Rooted,Handle}ScriptSourceObject. r=jimb
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4dc436553912
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•