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.
27 lines
382 B
27 lines
382 B
9 years ago
|
function test() {
|
||
|
var i;
|
||
|
var x = 123.1;
|
||
|
var y = 234.2;
|
||
|
var t;
|
||
|
|
||
|
for (i = 0; i < 1e6; i++) {
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
t = x + y;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
test();
|
||
|
} catch (e) {
|
||
|
print(e.stack || e);
|
||
|
throw e;
|
||
|
}
|