You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
333 B

/*
* Yielding from eval code is currently not allowed and should
* cause a clean TypeError.
*/
/*===
TypeError
===*/
function test_eval() {
var t = new Duktape.Thread(function() {
eval('Duktape.Thread.yield(1234)');
});
Duktape.Thread.resume(t)
}
try {
test_eval();
} catch (e) {
print(e.name);
}