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.
28 lines
464 B
28 lines
464 B
if (typeof print !== 'function') { print = console.log; }
|
|
|
|
function test() {
|
|
var b = new Buffer(4096);
|
|
var i;
|
|
|
|
print(typeof b);
|
|
|
|
for (i = 0; i < 1e7; i++) {
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
void b[100];
|
|
}
|
|
}
|
|
|
|
try {
|
|
test();
|
|
} catch (e) {
|
|
print(e.stack || e);
|
|
throw e;
|
|
}
|
|
|