Skip to content

lack of variable name in error message #1231

@Cinderellahaha

Description

@Cinderellahaha

When I run this incorrect code in v8:
var a = 0; a();
The engine will give an error message as below:
Uncaught TypeError: a is not a function
at :1:12
But when I run the same code in quickjs, the engine will give the following message:
TypeError: is not a function
Compared to V8, the variable name is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions