summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/tcoHelper.js
blob: 3c19379340af68ba21f5cc728fc464424c580191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2017 Rick Waldron.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
    Including tcoHelper.js will expose:

        var $MAX_ITERATIONS = 100000;

    This defines the number of consecutive recursive function calls that must be
    made in order to prove that stack frames are properly destroyed according to
    ES2015 tail call optimization semantics.

includes: [tcoHelper.js]
---*/


assert.sameValue($MAX_ITERATIONS, 100000);

reportCompare(0, 0);