mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-09 04:54:33 +00:00
checkin additional JS tests
This commit is contained in:
parent
1efa1540f4
commit
687ba7579f
18
js/src/jit-test/tests/TypedObject/bug-1369994.js
Normal file
18
js/src/jit-test/tests/TypedObject/bug-1369994.js
Normal file
@ -0,0 +1,18 @@
|
||||
var lfLogBuffer = `
|
||||
function f() {
|
||||
var i32 = new Int32Array(1);
|
||||
var f32 = new Float32Array(i32.buffer);
|
||||
for (var i = 0; i < 3; i++) {
|
||||
var { regExp, get, } = gczeal(9,10)
|
||||
? (yield) : (yield) = call(f32, "i32.store", []);
|
||||
}
|
||||
}
|
||||
f();
|
||||
`;
|
||||
loadFile(lfLogBuffer);
|
||||
function loadFile(lfVarx) {
|
||||
try {
|
||||
oomTest(function() { eval(lfVarx); });
|
||||
} catch (lfVare) {}
|
||||
}
|
||||
|
9
js/src/jit-test/tests/tenfourfox/regexu.js
Normal file
9
js/src/jit-test/tests/tenfourfox/regexu.js
Normal file
@ -0,0 +1,9 @@
|
||||
var re = /f...................................../i;
|
||||
var t = new Date;
|
||||
print("foo".match(re));
|
||||
print(new Date - t);
|
||||
|
||||
var re = /f...................................../ui;
|
||||
var t = new Date;
|
||||
print("foo".match(re));
|
||||
print(new Date - t);
|
10
js/src/jit-test/tests/tenfourfox/splitjoin.js
Normal file
10
js/src/jit-test/tests/tenfourfox/splitjoin.js
Normal file
@ -0,0 +1,10 @@
|
||||
var str = "i";
|
||||
for (var i = 1; i < 100; i++ ) {
|
||||
str += "-i";
|
||||
str += "->i";
|
||||
}
|
||||
for(var i = 0; i < 40000; i++ )
|
||||
if (i % 2 == 0)
|
||||
str = str.split("-").join(">");
|
||||
else
|
||||
str = str.split(">").join("-");
|
Loading…
Reference in New Issue
Block a user