mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 574518: Better solution: recur until error so that test autotunes for memory usage
This commit is contained in:
parent
ffa14c0ca4
commit
113fdd40ed
@ -63,9 +63,13 @@ function test()
|
||||
|
||||
var recursionDepth = 0;
|
||||
function err() {
|
||||
if (++recursionDepth == 64)
|
||||
return new Error();
|
||||
return err.apply(this, arguments);
|
||||
try {
|
||||
return err.apply(this, arguments);
|
||||
} catch (e) {
|
||||
if (!(e instanceof InternalError))
|
||||
throw e;
|
||||
}
|
||||
return new Error();
|
||||
}
|
||||
|
||||
// The full stack trace in error would include 64*4 copies of s exceeding
|
||||
|
Loading…
Reference in New Issue
Block a user