mirror of https://github.com/tc39/test262.git
Improve metadata
This commit is contained in:
parent
c7a158e74b
commit
f0f4cd6138
|
@ -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);
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue