mirror of https://github.com/svaarala/duktape.git
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.
37 lines
463 B
37 lines
463 B
/*---
|
|
{
|
|
"custom": true,
|
|
"specialoptions": "requires refcounting"
|
|
}
|
|
---*/
|
|
|
|
/*===
|
|
2
|
|
3
|
|
2
|
|
false
|
|
===*/
|
|
|
|
/* Development time test to test refcount handling of bytecode executor
|
|
* logical NOT.
|
|
*/
|
|
|
|
var dummy = {};
|
|
var z = 1;
|
|
|
|
function test() {
|
|
var tmp;
|
|
|
|
print(Duktape.info(dummy)[2]);
|
|
tmp = dummy;
|
|
print(Duktape.info(dummy)[2]);
|
|
tmp = !z;
|
|
print(Duktape.info(dummy)[2]);
|
|
print(tmp);
|
|
}
|
|
|
|
try {
|
|
test();
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
|