Closed Bug 1589905 Opened 6 years ago Closed 6 years ago

Add BaseScript::nargs() accessor

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(1 obsolete file)

There are several places that access script->function()->nargs() so it is worth having a helper method on BaseScript. This should also handle non-function scripts by returning 0 and existing use cases expect.

Replace the common pattern of 'script->function()->nargs()' with a
helper method.

Depends on D49838

Attachment #9102775 - Attachment description: Bug 1589905 - Add BaseScript::nargs() accessor → Bug 1589905 - Add JSScript::nargs() accessor
Attachment #9102775 - Attachment is obsolete: true

This is conflicting with a bunch of my other changes and include-order problems. The matter can be revisited once LazyScript/JSScript is merged, but it will look very different so closing as INVALID.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: