[test] Speed up slow stack overflow test.
BUG= Review URL: https://codereview.chromium.org/1253643003 Cr-Commit-Position: refs/heads/master@{#29806}
This commit is contained in:
parent
0fe2fbd173
commit
9c249601f2
@ -45,7 +45,7 @@ PASS myFunctionWithApply.aliasedApply(myObject, ['arg1']) is [myObject, "myFunct
|
||||
PASS myFunctionWithApply.apply(myObject, arg1Array) is [myFunctionWithApply, "myFunctionWithApply.apply", myObject]
|
||||
PASS forwarder(myFunctionWithApply, myObject, arg1Array) is [myFunctionWithApply, "myFunctionWithApply.apply", myObject]
|
||||
PASS myFunctionWithApply.aliasedApply(myObject, arg1Array) is [myObject, "myFunctionWithApply", "arg1"]
|
||||
PASS myFunction.apply(null, new Array(5000000)) threw exception RangeError: Maximum call stack size exceeded.
|
||||
PASS myFunction.apply(null, new Array(500000)) threw exception RangeError: Maximum call stack size exceeded.
|
||||
PASS myFunction.apply(null, new Array(1 << 30)) threw exception RangeError: Maximum call stack size exceeded.
|
||||
PASS recurseArguments.apply(null, new Array(50000)) threw exception RangeError: Maximum call stack size exceeded.
|
||||
PASS successfullyParsed is true
|
||||
|
@ -20,6 +20,7 @@
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// Flags: --stack-size=100
|
||||
|
||||
description(
|
||||
"This tests that we can correctly call Function.prototype.apply"
|
||||
@ -73,7 +74,7 @@ function stackOverflowTest() {
|
||||
stackOverflowTest();
|
||||
} catch(e) {
|
||||
// Blow the stack with a sparse array
|
||||
shouldThrow("myFunction.apply(null, new Array(5000000))");
|
||||
shouldThrow("myFunction.apply(null, new Array(500000))");
|
||||
// Blow the stack with a sparse array that is sufficiently large to cause int overflow
|
||||
shouldThrow("myFunction.apply(null, new Array(1 << 30))");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user