mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
10 lines
428 B
JavaScript
10 lines
428 B
JavaScript
// Formerly test055.js - added so a search in directory can reveal this file
|
|
// test that setTimeout acts like jsConsole/Chrome's
|
|
// HOWEVER this is not always the case. See what is reported on this bug: https://github.com/espruino/Espruino/issues/134
|
|
// It does make a lot of sense for Espruino to do this though (see the comments in the bug)
|
|
|
|
var result=0;
|
|
function a() {result=0;}
|
|
setTimeout(a,10);
|
|
function a() {result=1;}
|