Skip to content

Should specify that all JS functions created by IDL are "built-in functions" #106

@domenic

Description

@domenic

That is, they should follow the rules in https://tc39.github.io/ecma262/#sec-built-in-function-objects. Notably:

  • No .prototype property
  • No [[Construct]] unless otherwise specified
  • No arguments or caller properties

According to https://developer.microsoft.com/en-us/microsoft-edge/platform/catalog/, Chrome and Edge violate the arguments and caller prohibition. Not sure about the rest.

/cc @ajklein

Filed https://bugs.chromium.org/p/chromium/issues/detail?id=601272 on Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions