Skip to content

No reference error when the variable is not an argument #154

Description

@galpeter

Consider the following code:

try {
    xxxx;
} catch(e) {
    print(e);
}

Will not print out the expected ReferenceError string. But if we change the code in a way that the xxxx variable is part of an argument list then the exception is correctly raised.

So using the following code:

try {
    print(xxxx);
} catch(e) {
    print(e);
}

Will print out the expected ReferenceError string.

Jerry version:
Checked revision: ac87616f0
Build: debug.linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviournormalparserRelated to the JavaScript parser

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions