Browse Source

very trivial test case for Duktape.act()

pull/2/head
Sami Vaarala 11 years ago
parent
commit
afa88d63da
  1. 24
      ecmascript-testcases/test-bi-duktape-act.js

24
ecmascript-testcases/test-bi-duktape-act.js

@ -0,0 +1,24 @@
/*===
-1 0 act
-2 10 test
-3 21 global
===*/
function test() {
var i, t;
for (i = -1; ; i--) {
t = Duktape.act(i);
if (!t) { break; }
// Property set may change between versions, but at least
// these should be present for now (there is also 'pc' but
// that isn't so useful.
print(i, t.lineNumber, t.function.name);
}
}
try {
test();
} catch (e) {
print(e);
}
Loading…
Cancel
Save