Open Bug 807401 Opened 12 years ago Updated 2 years ago

have 1 JSFunction::isCallableAsConstructor predicate instead of 3

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

People

(Reporter: luke, Unassigned)

References

Details

Till pointed out that we now have 3 predicates for when something is callable as a constructor.  We also have two separate JSFunction::flags: NATIVE_CTOR and SELF_HOSTED_CTOR.  It would be nice to have a single "callable as a constructor".  In theory we could have a single bit in JSFunction::flags and mark all interpreted functions (except Function.prototype and non-constructor self-hosted functions) and JSFUN_CONSTRUCTOR natives.
Assignee: general → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.