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

[Console] Fail to throw exception when output an undefined value #566

Closed
@xiaolongx

Description

@xiaolongx

If we only run console.log(a);, it will output JerryScript: cannot run javascript due to 'a' is undefined. But adding console.log(a) in setTimeout() and setInterval(), no exception thrown on both Arduino 101 and FRDM-K64F.

setTimeout(function() {
    console.log(a);
}, 1000);

But using the same code on chrome, it will throw exception like this:
Uncaught ReferenceError: a is not defined

Branch Target Device Build ID Date Result
master Arduino 5a25755 Dec 21, 2016 Nothing Output
master FRDM-K64F 5a25755 Dec 21, 2016 Nothing Output

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