blob: da6a0a959dfd6264d6e91da875a84e6522c9d0f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |jit-test| skip-if: !('oomTest' in this && 'stackTest' in this) || helperThreadCount() === 0
// Check that oomTest throws an exception on worker threads.
setSharedObject(0);
evalInWorker(`
try {
oomTest(crash);
} catch (e) {
if (e.toString().includes("main thread")) {
setSharedObject(1);
}
}
`);
while (getSharedObject() != 1) {
// poor-man wait condition.
}
|