debug! add console.log stmts
This commit is contained in:
parent
c33b8c9b13
commit
c18611db27
1 changed files with 4 additions and 4 deletions
|
@ -281,10 +281,10 @@ function test_timeout_order()
|
|||
os.setTimeout(a, 1);
|
||||
os.setTimeout(b, 2);
|
||||
os.setTimeout(d, 5);
|
||||
function a() { s += "a"; os.setTimeout(c, 0); }
|
||||
function b() { s += "b"; }
|
||||
function c() { s += "c"; }
|
||||
function d() { assert(s === "abc"); } // not "acb"
|
||||
function a() { console.log("a:", s); s += "a"; os.setTimeout(c, 0); }
|
||||
function b() { console.log("b:", s); s += "b"; }
|
||||
function c() { console.log("c:", s); s += "c"; }
|
||||
function d() { console.log("d:", s); assert(s === "abc"); } // not "acb"
|
||||
}
|
||||
|
||||
test_printf();
|
||||
|
|
Loading…
Reference in a new issue