Improve metadata

This commit is contained in:
Leo Balter 2019-10-09 18:20:45 -04:00 committed by Rick Waldron
parent c7a158e74b
commit f0f4cd6138
3 changed files with 14 additions and 19 deletions

View File

@ -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);

View File

@ -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]

View File

@ -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]