mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
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.
|
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
description: Expression is a candidate for tail-call optimization.
|
description: Expression is a candidate for tail-call optimization.
|
||||||
esid: sec-static-semantics-hascallintailposition
|
esid: sec-static-semantics-hascallintailposition
|
||||||
|
info: |
|
||||||
|
Expression Rules
|
||||||
|
|
||||||
|
CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression
|
||||||
|
|
||||||
|
1. Return HasCallInTailPosition of BitwiseORExpression with argument call.
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
features: [tail-call-optimization, coalesce-expression]
|
features: [tail-call-optimization, coalesce-expression]
|
||||||
includes: [tcoHelper.js]
|
includes: [tcoHelper.js]
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
description: Expression is a candidate for tail-call optimization.
|
description: Expression is a candidate for tail-call optimization.
|
||||||
esid: sec-static-semantics-hascallintailposition
|
esid: sec-static-semantics-hascallintailposition
|
||||||
|
info: |
|
||||||
|
Expression Rules
|
||||||
|
|
||||||
|
CoalesceExpression : CoalesceExpressionHead ?? BitwiseORExpression
|
||||||
|
|
||||||
|
1. Return HasCallInTailPosition of BitwiseORExpression with argument call.
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
features: [tail-call-optimization, coalesce-expression]
|
features: [tail-call-optimization, coalesce-expression]
|
||||||
includes: [tcoHelper.js]
|
includes: [tcoHelper.js]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user