Skip to content

Conversation

@janjongboom
Copy link
Contributor

In the mbedos5 target the setTimeout and setInterval functions are not on spec, as they return 'undefined' instead of an event ID. Also clearTimeout and clearInterval are not implemented, so scheduled events cannot be canceled. This patch changes the behavior of the set* functions, and implements clear* functions.

JerryScript-DCO-1.0-Signed-off-by: Jan Jongboom janjongboom@gmail.com

Partial fix for #1445

/cc @thegecko @matthewelse

@janjongboom janjongboom force-pushed the clear_timeout_interval branch from 8b8208e to e6be54a Compare November 28, 2016 15:17
…ment clearTimeout/clearInterval

In the mbedos5 target the setTimeout and setInterval functions are not on spec, as they return 'undefined' instead of an event ID. Also clearTimeout and clearInterval are not implemented, so scheduled events cannot be canceled. This patch changes the behavior of the set* functions, and implements clear* functions.

JerryScript-DCO-1.0-Signed-off-by: Jan Jongboom janjongboom@gmail.com
@LaszloLango LaszloLango added the jerry-port Related to the port API or the default port implementation label Nov 29, 2016
@zherczeg
Copy link
Member

LGTM

@thegecko
Copy link
Contributor

Ack

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

jerry-port Related to the port API or the default port implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants