v8/test/mjsunit/regress/regress-crbug-762472.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
555 B
JavaScript
Raw Normal View History

// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --stack-size=100
function Module() {
"use asm";
function f() {}
return { f:f }
}
function InstantiateNearStackLimit() {
try {
var fuse = InstantiateNearStackLimit();
if (fuse == 0) Module();
return fuse - 1;
} catch(e) {
return init_fuse;
}
}
var init_fuse = 0;
for (init_fuse = 0; init_fuse < 10; init_fuse++) {
InstantiateNearStackLimit();
}