Closed Bug 1591655 Opened 5 years ago Closed 5 years ago

Remove the useless proto argument to JS::NewPromiseObject

Categories

(Core :: JavaScript Engine, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: Waldo, Assigned: Waldo)

Details

Attachments

(1 file)

It defaults to nullptr, and every caller either omits it or passes nullptr. (Note also that the argument failed to be respected if !executor, too.) No reason not to get rid of it, and also to get rid of a similarly-vacuous argument in DOM-side callers.

Assignee: nobody → jwalden
Status: NEW → ASSIGNED
Attachment #9104387 - Attachment description: Bug 1591655 - Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype). r?jandem!,bzbarsky! → Bug 1591655 - Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype). r=bzbarsky, r=jandem
Pushed by jwalden@mit.edu:
https://hg.mozilla.org/integration/autoland/rev/adfac78ca4eb
Remove the unnecessary |proto| argument from |JS::NewPromiseObject| and its callers, seeing as all callers pass |nullptr| (and therefore uniformly request the default prototype).  r=jandem,bzbarsky
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: