mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
5 years ago
committed by
GitHub
7 changed files with 72 additions and 6 deletions
@ -0,0 +1,17 @@ |
|||
/* |
|||
* https://github.com/svaarala/duktape/issues/2030
|
|||
*/ |
|||
|
|||
/*=== |
|||
done |
|||
===*/ |
|||
|
|||
Duktape.fin( |
|||
Proxy, function( ) { |
|||
function f( ) { |
|||
performance ('g called', isFinite(Error), TypeError(g)); |
|||
} |
|||
Duktape.Thread.resume(new Duktape.Thread(f)); |
|||
}); |
|||
|
|||
print('done'); |
@ -0,0 +1,22 @@ |
|||
/* |
|||
* https://github.com/svaarala/duktape/issues/2030
|
|||
* |
|||
* Testcase adapted a bit in this version. |
|||
*/ |
|||
|
|||
/*=== |
|||
done |
|||
finalizer called |
|||
f called |
|||
===*/ |
|||
|
|||
Duktape.fin(Proxy, function( ) { |
|||
function f() { |
|||
print('f called'); |
|||
performance(); // Throws.
|
|||
} |
|||
print('finalizer called'); |
|||
Duktape.Thread.resume(new Duktape.Thread(f)); |
|||
}); |
|||
|
|||
print('done'); |
Loading…
Reference in new issue