| accessors.js |
---
es6id: 14.5
description: >
class accessors
--- |
1609 |
- |
| basics.js |
---
es6id: 14.5
description: >
class basics
--- |
1360 |
- |
| class-method-returns-promise.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Async function expressions return promises
--- |
402 |
- |
| constructable-but-no-prototype.js |
---
es6id: 14.5
description: >
class constructable but no prototype
--- |
318 |
- |
| constructor-property.js |
---
es6id: 14.5
description: >
class constructor property
--- |
930 |
- |
| constructor-strict-by-default.js |
---
es6id: 14.5
description: >
class constructor strict
--- |
334 |
- |
| constructor.js |
---
es6id: 14.5
description: >
class constructor
--- |
1304 |
- |
| early-errors-class-method-arguments-in-formal-parameters.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters contains arguments
negative:
phase: parse
type: SyntaxError
--- |
423 |
- |
| early-errors-class-method-await-in-formals-default.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters' default expressions contains await
negative:
phase: parse
type: SyntaxError
--- |
442 |
- |
| early-errors-class-method-await-in-formals.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters contains await
negative:
phase: parse
type: SyntaxError
--- |
416 |
- |
| early-errors-class-method-body-contains-super-call.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if AsyncFunctionBody contains SuperCall is true
negative:
phase: parse
type: SyntaxError
--- |
431 |
- |
| early-errors-class-method-duplicate-parameters.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Early error rules for StrictFormalParameters are applied
negative:
phase: parse
type: SyntaxError
--- |
420 |
- |
| early-errors-class-method-eval-in-formal-parameters.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters contains eval in strict mode
negative:
phase: parse
type: SyntaxError
--- |
427 |
- |
| early-errors-class-method-formals-body-duplicate.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
It is a SyntaxError if BoundNames of FormalParameters also occurs in the LexicallyDeclaredNames of AsyncFunctionBody
negative:
phase: parse
type: SyntaxError
--- |
497 |
- |
| early-errors-class-method-formals-contains-super-call.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a syntax error if FormalParameters contains SuperCall is true
negative:
phase: parse
type: SyntaxError
--- |
435 |
- |
| early-errors-class-method-NSPL-with-USD.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is *true* and IsSimpleParameterList of ArrowParameters is *false*.
negative:
phase: parse
type: SyntaxError
--- |
503 |
- |
| fn-name-accessor-get.js |
---
es6id: 14.3.9
description: Assignment of function `name` attribute ("get" accessor)
info: |
MethodDefinition : get PropertyName ( ) { FunctionBody }
[...]
8. Perform SetFunctionName(closure, propKey, "get").
includes: [propertyHelper.js]
features: [Symbol]
--- |
1924 |
- |
| fn-name-accessor-set.js |
---
es6id: 14.3.9
description: Assignment of function `name` attribute ("set" accessor)
info: |
MethodDefinition :
set PropertyName ( PropertySetParameterList ) { FunctionBody }
[...]
7. Perform SetFunctionName(closure, propKey, "set").
includes: [propertyHelper.js]
features: [Symbol]
--- |
1963 |
- |
| fn-name-gen-method.js |
---
es6id: 14.4.13
description: >
Assignment of function `name` attribute (GeneratorMethod)
info: |
GeneratorMethod :
PropertyName ( StrictFormalParameters ) { GeneratorBody }
[...]
9. Perform SetFunctionName(closure, propKey).
includes: [propertyHelper.js]
features: [generators, Symbol]
--- |
1855 |
- |
| fn-name-method.js |
---
es6id: 12.2.6.9
description: Assignment of function `name` attribute (MethodDefinition)
info: |
6. If IsAnonymousFunctionDefinition(AssignmentExpression) is true, then
a. Let hasNameProperty be HasOwnProperty(propValue, "name").
b. ReturnIfAbrupt(hasNameProperty).
c. If hasNameProperty is false, perform SetFunctionName(propValue,
propKey).
includes: [propertyHelper.js]
features: [Symbol]
--- |
1963 |
- |
| fn-name-static-precedence.js |
---
es6id: 14.5.15
description: >
Function `name` attribute not inferred in presence of static `name` method
info: |
ClassDeclaration : class BindingIdentifier ClassTail
[...]
4. Let hasNameProperty be HasOwnProperty(value, "name").
5. ReturnIfAbrupt(hasNameProperty).
6. If hasNameProperty is false, then perform SetFunctionName(value,
className).
features: [generators]
--- |
1485 |
- |
| getters-non-configurable-err.js |
---
esid: sec-method-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.3.9
description: Failure to define property for static method
info: |
[...]
9. Let desc be the PropertyDescriptor{[[Get]]: closure, [[Enumerable]]:
enumerable, [[Configurable]]: true}.
10. Return ? DefinePropertyOrThrow(object, propKey, desc).
features: [generators]
--- |
602 |
- |
| getters-prop-desc.js |
---
esid: sec-class-definitions
es6id: 14.5
description: Class methods - "get" accessors
includes: [propertyHelper.js]
--- |
1459 |
- |
| getters-restricted-ids.js |
---
es6id: 14.5
description: >
class getters 2
--- |
654 |
- |
| implicit-constructor.js |
---
es6id: 14.5
description: >
class implicit constructor
--- |
358 |
- |
| invalid-extends.js |
---
es6id: 14.5
description: >
class invalid extends
--- |
528 |
- |
| methods-async-super-call-body.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Super calls work in body of async methods
flags: [async]
--- |
501 |
- |
| methods-async-super-call-param.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Super calls work in the parameter list of async methods
flags: [async]
--- |
505 |
- |
| methods-gen-no-yield.js |
---
description: >
Generators declared with GeneratorMethod syntax do not require a
`yield` expression.
features: [generators]
es6id: 14.4
--- |
461 |
- |
| methods-gen-return.js |
---
description: >
`return` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
--- |
567 |
- |
| methods-gen-yield-as-expression-with-rhs.js |
---
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
--- |
3077 |
- |
| methods-gen-yield-as-expression-without-rhs.js |
---
description: >
`yield` is a valid expression within generator function bodies.
features: [generators]
es6id: 14.4
--- |
3137 |
- |
| methods-gen-yield-as-function-expression-binding-identifier.js |
---
description: >
`yield` may not be used as the binding identifier of a function
expression within classes.
features: [generators]
es6id: 14.1
negative:
phase: parse
type: SyntaxError
--- |
474 |
- |
| methods-gen-yield-as-generator-method-binding-identifier.js |
---
description: >
`yield` is a valid BindingIdentifier for GeneratorMethods outside of
strict mode.
features: [generators]
es6id: 12.1.1
--- |
855 |
- |
| methods-gen-yield-as-identifier-in-nested-function.js |
---
description: >
`yield` is a reserved keyword within normal function bodies declared
within classes.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
--- |
485 |
- |
| methods-gen-yield-as-literal-property-name.js |
---
description: >
`yield` may be used as a literal property name in an object literal
within generator function bodies.
features: [generators]
es6id: 12.1.1
--- |
512 |
- |
| methods-gen-yield-as-logical-or-expression.js |
---
description: >
`yield` expressions are not LogicalOrExpressions.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
--- |
429 |
- |
| methods-gen-yield-as-parameter.js |
---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as the binding identifier of a parameter.
features: [generators]
es6id: 12.1.1
negative:
phase: parse
type: SyntaxError
--- |
485 |
- |
| methods-gen-yield-as-property-name.js |
---
description: >
`yield` may be used as a literal property name in an object literal
within generator function bodies.
features: [generators]
es6id: 12.1.1
--- |
497 |
- |
| methods-gen-yield-as-statement.js |
---
description: >
`yield` is a valid statement within generator function bodies.
features: [generators]
es6id: 14.4
--- |
1236 |
- |
| methods-gen-yield-as-yield-operand.js |
---
description: >
`yield` expressions may be used as the right-hand-side of other `yield`
expressions.
features: [generators]
es6id: 14.4
--- |
853 |
- |
| methods-gen-yield-newline.js |
---
description: >
Newlines terminate `yield` expressions.
features: [generators]
es6id: 14.4
--- |
652 |
- |
| methods-gen-yield-star-after-newline.js |
---
description: >
A newline may not precede the `*` token in a `yield` expression.
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
--- |
433 |
- |
| methods-gen-yield-star-before-newline.js |
---
description: >
The right-hand side of a `yield *` expression may appear on a new line.
features: [generators]
es6id: 14.4
--- |
484 |
- |
| methods-gen-yield-weak-binding.js |
---
description: >
`yield` expressions bind weakly
features: [generators]
es6id: 14.4
negative:
phase: parse
type: SyntaxError
--- |
399 |
- |
| methods-named-eval-arguments.js |
---
es6id: 14.5
description: >
class methods 2
--- |
622 |
- |
| methods-restricted-properties.js |
---
description: >
Functions created using MethodDefinition syntactic form do not have own
properties "caller" or "arguments", but inherit them from
%FunctionPrototype%.
es6id: 16.1
--- |
2259 |
- |
| methods.js |
---
es6id: 14.5
description: >
class methods
--- |
1565 |
- |
| numeric-property-names.js |
---
es6id: 14.5
description: >
class numeric property names
--- |
2874 |
- |
| prototype-getter.js |
---
es6id: 14.5
description: >
class prototype getter
--- |
717 |
- |
| prototype-property.js |
---
es6id: 14.5
description: >
class prototype property
--- |
544 |
- |
| prototype-setter.js |
---
es6id: 14.5
description: >
class prototype setter
--- |
441 |
- |
| prototype-wiring.js |
---
es6id: 14.5
description: >
class prototype wiring
--- |
1807 |
- |
| setters-non-configurable-err.js |
---
esid: sec-method-definitions-runtime-semantics-propertydefinitionevaluation
es6id: 14.3.9
description: Failure to define property for static method
info: |
[...]
8. Let desc be the PropertyDescriptor{[[Set]]: closure, [[Enumerable]]:
enumerable, [[Configurable]]: true}.
9. Return ? DefinePropertyOrThrow(object, propKey, desc).
features: [generators]
--- |
602 |
- |
| setters-prop-desc.js |
---
esid: sec-class-definitions
es6id: 14.5
description: Class methods - "set" accessors
includes: [propertyHelper.js]
--- |
1536 |
- |
| setters-restricted-ids.js |
---
es6id: 14.5
description: >
class setters 2
--- |
643 |
- |
| side-effects-in-extends.js |
---
es6id: 14.5
description: >
class side effect in extends
--- |
636 |
- |
| side-effects-in-property-define.js |
---
es6id: 14.5
description: >
class side effects in property define
--- |
414 |
- |
| this-access-restriction-2.js |
---
es6id: 14.5
description: >
class this access restriction 2
--- |
2201 |
- |
| this-access-restriction.js |
---
es6id: 14.5
description: >
class this access restriction
--- |
1721 |
- |
| this-check-ordering.js |
---
es6id: 14.5
description: >
class this check ordering
--- |
1887 |
- |