Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Web reality #17

Open
Open
@bakkot

Description

@bakkot

In all of {V8, SpiderMonkey, JavaScriptCore, Chakra}, the snippet

(function /**/ \u0061 /**/ ( /**/ ) { /**/ }).toString()

produces

function a( /**/ ){ /**/ }

which differs from this proposal's required

function /**/ \u0061 /**/ ( /**/ ){ /**/ }

The same occurs for function declarations. It appears that all browsers save only the source text from the parameters onwards, and synthesize text appearing prior to them.

😢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions