Closed Bug 1458973 Opened 6 years ago Closed 6 years ago

Rename {Rooted,Handle}ScriptSource to {Rooted,Handle}ScriptSourceObject.

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox61 --- wontfix
firefox62 --- fixed

People

(Reporter: arai, Assigned: arai)

Details

Attachments

(1 file)

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: nobody → arai.unmht
Status: NEW → ASSIGNED
(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 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+
https://hg.mozilla.org/integration/mozilla-inbound/rev/4dc436553912f37245271228859ca880da76b335
Bug 1458973 - Rename {Rooted,Handle}ScriptSource to {Rooted,Handle}ScriptSourceObject. r=jimb
https://hg.mozilla.org/mozilla-central/rev/4dc436553912
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: