diff --git a/test/language/expressions/coalesce/tco-cond.js b/test/language/expressions/coalesce/tco-cond.js deleted file mode 100644 index 9852200e33..0000000000 --- a/test/language/expressions/coalesce/tco-cond.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2019 Leo Balter. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -description: Expression is a candidate for tail-call optimization. -esid: sec-static-semantics-hascallintailposition -flags: [onlyStrict] -features: [tail-call-optimization, coalesce-expression] -includes: [tcoHelper.js] ----*/ - -var callCount = 0; -(function f(n) { - if (n === 0) { - callCount += 1 - return; - } - return f(n - 1) ?? false; -}($MAX_ITERATIONS)); -assert.sameValue(callCount, 1); diff --git a/test/language/expressions/coalesce/tco-pos-null.js b/test/language/expressions/coalesce/tco-pos-null.js index cf706133a5..93c24453a3 100644 --- a/test/language/expressions/coalesce/tco-pos-null.js +++ b/test/language/expressions/coalesce/tco-pos-null.js @@ -1,8 +1,15 @@ // Copyright (C) 2019 Leo Balter. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. + /*--- description: Expression is a candidate for tail-call optimization. esid: sec-static-semantics-hascallintailposition +info: | + Expression Rules + + CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression + + 1. Return HasCallInTailPosition of BitwiseORExpression with argument call. flags: [onlyStrict] features: [tail-call-optimization, coalesce-expression] includes: [tcoHelper.js] diff --git a/test/language/expressions/coalesce/tco-pos-undefined.js b/test/language/expressions/coalesce/tco-pos-undefined.js index 53a2d4f7cb..0065123eb1 100644 --- a/test/language/expressions/coalesce/tco-pos-undefined.js +++ b/test/language/expressions/coalesce/tco-pos-undefined.js @@ -1,8 +1,15 @@ // Copyright (C) 2019 Leo Balter. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. + /*--- description: Expression is a candidate for tail-call optimization. esid: sec-static-semantics-hascallintailposition +info: | + Expression Rules + + CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression + + 1. Return HasCallInTailPosition of BitwiseORExpression with argument call. flags: [onlyStrict] features: [tail-call-optimization, coalesce-expression] includes: [tcoHelper.js]