зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368595 part 2 - Rewrite bug1355573.js jit-test to work around the harness not supporting error + allow-oom. r=jonco
This commit is contained in:
Родитель
e700643daf
Коммит
ab86f7bf5d
|
@ -1,6 +1,12 @@
|
|||
// |jit-test| error:overflow; allow-oom
|
||||
// |jit-test| allow-oom
|
||||
if (getBuildConfiguration().debug === true)
|
||||
throw "overflow";
|
||||
quit(0);
|
||||
function f(){};
|
||||
Object.defineProperty(f, "name", {value: "a".repeat((1<<28)-1)});
|
||||
len = f.bind().name.length;
|
||||
var ex = null;
|
||||
try {
|
||||
len = f.bind().name.length;
|
||||
} catch (e) {
|
||||
ex = e;
|
||||
}
|
||||
assertEq(ex instanceof InternalError, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче