Skip to content

Deal with [[Call]], [[Constuct]] duplication #360

Closed

Description

@jasonwilliams

Some Constructor function's have different runtime values for [[Call]] and [[Construct]].
String() for instance returns a native string if called via String() but an object if called via new String().

We have 2 slots for these on the Object itself, however for those constructors that do the same thing on both Call and Construct (Date, Regexp) we're currently duplicating the same value in both slots.

Is there a better way to deal with this? Such as using a reference, pinning or falling back.

Activity

  1. added
    Help Wanted
    A-Technical Debt
    on May 1, 2020
  2. added this to the v0.8.0 milestone on May 14, 2020
  3. added
    A-Performance
    on May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-PerformanceA-Technical DebtHelp Wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions