mirror of https://github.com/tc39/test262.git
[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha 2f2295c3f7 on Tue Nov 27 2018 19:04:26 GMT+0000 (Coordinated Universal Time)
This commit is contained in:
parent
9d5aa7d267
commit
ffcc3dc767
|
@ -0,0 +1,16 @@
|
||||||
|
function bar() {
|
||||||
|
let x = 0;
|
||||||
|
foo(0);
|
||||||
|
if (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function foo(a) {
|
||||||
|
let x = a[0]
|
||||||
|
a[0] = 0;
|
||||||
|
return;
|
||||||
|
a
|
||||||
|
}
|
||||||
|
foo([0]);
|
||||||
|
for (var i = 0; i < 10000; ++i) {
|
||||||
|
bar();
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
//@ runDefault("--forceEagerCompilation=1", "--useConcurrentJIT=0")
|
||||||
|
|
||||||
|
function foo(a, a) {
|
||||||
|
function x() {
|
||||||
|
eval();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foo();
|
||||||
|
foo();
|
||||||
|
foo();
|
||||||
|
foo();
|
||||||
|
foo();
|
||||||
|
foo(0);
|
|
@ -1,4 +1,4 @@
|
||||||
//@ skip if $hostOS != "darwin"
|
//@ skip if $hostOS != "darwin" or $architecture == "arm" or $architecture == "x86"
|
||||||
// Test that throw an OOM exception when compiling a pathological, but valid nested RegExp.
|
// Test that throw an OOM exception when compiling a pathological, but valid nested RegExp.
|
||||||
|
|
||||||
var failures = [];
|
var failures = [];
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
async function* fn() {
|
||||||
|
return p
|
||||||
|
return q
|
||||||
|
switch (0) {
|
||||||
|
case 1:
|
||||||
|
i++;
|
||||||
|
i++;
|
||||||
|
foo(x, arguments[z]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fn().next();
|
|
@ -0,0 +1,15 @@
|
||||||
|
var importObject = {
|
||||||
|
env: {
|
||||||
|
print_number: function (number) {
|
||||||
|
print('[+] importObject callback.');
|
||||||
|
print(number);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var wasmCode = new Uint8Array([0x0,0x61,0x73,0x6d,0x1,0x0,0x0,0x0,0x1,0x7,0x1,0x60,0x2,0x7e,0x7f,0x1,0x7f,0x3,0x2,0x1,0x0,0x4,0x4,0x1,0x70,0x0,0x4,0x6,0x2e,0x5,0x7f,0x0,0x41,0x2a,0xb,0x7d,0x0,0x43,0x74,0x0,0x0,0x4d,0xb,0x7c,0x0 ,0x44,0x83,0x88,0x88,0x00,0x0,0x0,0xff,0xff,0xb,0x7d,0x0,0x43,0x0,0x0,0x9,0x7f,0xb,0x7c,0x0,0x44,0x0,0x3c,0x0,0x0,0x0,0x0,0xf8,0x7f,0xb,0x7,0x40,0x7,0x5,0x74,0x61,0x62,0x3f,0x45,0x1,0x0,0x3,0x7d,0x75,0x6d,0x0,0x0,0x6,0x61,0x3d, 0x22,0x0,0xd,0x72,0x3,0x0,0x7,0x4f,0x7c,0x68,0x77,0x65,0x20,0x31,0x3,0x1,0x7,0x41,0x41,0x41,0x41,0x41,0x41,0x41,0x3,0x2,0x7,0x61,0x6e,0x73,0x77,0x65,0x72,0x3c,0x3,0x3,0x7,0x61,0x6e,0x73,0x77,0x65,0x72,0x34,0x3,0x4,0x9,0x7,0x1,0x0,0x41,0x0,0xb,0x1,0x0,0xa,0x9,0x1,0x7,0x0,0x20,0x1,0x0,0x1,0x0,0xb,]);
|
||||||
|
var wasmModule = new WebAssembly.Module(wasmCode);
|
||||||
|
var wasmInstance = new WebAssembly.Instance(wasmModule, importObject);
|
||||||
|
|
||||||
|
var res = wasmInstance.exports.AAAAAAA;
|
||||||
|
res = res + 'string';
|
||||||
|
|
Loading…
Reference in New Issue