From 97e051114aa8e7f2f44ad8900c6c7e62a59e566b Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Fri, 25 Sep 2020 17:13:29 -0400 Subject: [PATCH] Separate cases --- .../evaluation/async-arrow.template | 22 +++++++++++++ .../async-class-decl-method.template | 29 +++++++++++++++++ .../async-class-decl-private-method.template | 32 +++++++++++++++++++ .../async-class-decl-static-method.template | 28 ++++++++++++++++ ...-class-decl-static-private-method.template | 31 ++++++++++++++++++ .../async-class-expr-method.template | 29 +++++++++++++++++ .../async-class-expr-private-method.template | 32 +++++++++++++++++++ .../async-class-expr-static-method.template | 28 ++++++++++++++++ ...-class-expr-static-private-method.template | 31 ++++++++++++++++++ .../evaluation/async-declaration.template | 18 +++++++++++ .../async-expression-named.template | 18 +++++++++++ .../evaluation/async-expression.template | 18 +++++++++++ .../evaluation/async-obj-method.template | 22 +++++++++++++ ...eturns-arguments-from-parent-function.case | 8 ++--- ...returns-async-arrow-returns-newtarget.case | 8 ++--- src/async-functions/returns-async-arrow.case | 8 ++--- ...n-returns-arguments-from-own-function.case | 8 ++--- ...urns-async-function-returns-newtarget.case | 8 ++--- .../returns-async-function.case | 8 ++--- .../syntax/async-class-decl-method.template | 3 -- .../async-class-decl-private-method.template | 6 ---- .../async-class-decl-static-method.template | 2 -- ...-class-decl-static-private-method.template | 6 +--- .../syntax/async-class-expr-method.template | 3 -- .../async-class-expr-private-method.template | 6 ---- .../async-class-expr-static-method.template | 2 -- ...-class-expr-static-private-method.template | 5 --- .../syntax/async-obj-method.template | 2 -- 28 files changed, 363 insertions(+), 58 deletions(-) create mode 100644 src/async-functions/evaluation/async-arrow.template create mode 100644 src/async-functions/evaluation/async-class-decl-method.template create mode 100644 src/async-functions/evaluation/async-class-decl-private-method.template create mode 100644 src/async-functions/evaluation/async-class-decl-static-method.template create mode 100644 src/async-functions/evaluation/async-class-decl-static-private-method.template create mode 100644 src/async-functions/evaluation/async-class-expr-method.template create mode 100644 src/async-functions/evaluation/async-class-expr-private-method.template create mode 100644 src/async-functions/evaluation/async-class-expr-static-method.template create mode 100644 src/async-functions/evaluation/async-class-expr-static-private-method.template create mode 100644 src/async-functions/evaluation/async-declaration.template create mode 100644 src/async-functions/evaluation/async-expression-named.template create mode 100644 src/async-functions/evaluation/async-expression.template create mode 100644 src/async-functions/evaluation/async-obj-method.template diff --git a/src/async-functions/evaluation/async-arrow.template b/src/async-functions/evaluation/async-arrow.template new file mode 100644 index 0000000000..7f123e5c19 --- /dev/null +++ b/src/async-functions/evaluation/async-arrow.template @@ -0,0 +1,22 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/async-arrow-function/ +name: Async arrow function +esid: prod-AsyncArrowFunction +info: | + Async Arrow Function Definitions + + AsyncArrowFunction[In, Yield, Await]: + async [no LineTerminator here] AsyncArrowBindingIdentifier[?Yield] [no LineTerminator here] => AsyncConciseBody[?In] + CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await] [no LineTerminator here] => AsyncConciseBody[?In] + + AsyncConciseBody[In]: + { AsyncFunctionBody } +features: [async-functions] +---*/ + +async (/*{ params }*/) => { + /*{ body }*/ +} diff --git a/src/async-functions/evaluation/async-class-decl-method.template b/src/async-functions/evaluation/async-class-decl-method.template new file mode 100644 index 0000000000..f9911195df --- /dev/null +++ b/src/async-functions/evaluation/async-class-decl-method.template @@ -0,0 +1,29 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/class/async-method/ +name: Async method as a ClassDeclaration element +esid: prod-AsyncMethod +info: | + ClassElement : + MethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +class C { + async method(/*{ params }*/) { + /*{ body }*/ + } +} +// Stores a reference `asyncFn` for case evaluation +let c = new C(); +let asyncFn = c.method.bind(c); diff --git a/src/async-functions/evaluation/async-class-decl-private-method.template b/src/async-functions/evaluation/async-class-decl-private-method.template new file mode 100644 index 0000000000..99f23261c7 --- /dev/null +++ b/src/async-functions/evaluation/async-class-decl-private-method.template @@ -0,0 +1,32 @@ +// Copyright (C) 2018 Bloomberg LP. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/class/elements/async-private-method/ +name: Async private method as a ClassDeclaration element +esid: prod-AsyncMethod +info: | + ClassElement : + PrivateMethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions, class-methods-private] +---*/ + +class C { + async #method(/*{ params }*/) { + /*{ body }*/ + } + async method(/*{ params }*/) { + return this.#method(/*{ params }*/); + } +} +// Stores a reference `asyncFn` for case evaluation +let c = new C(); +let asyncFn = c.method.bind(c); diff --git a/src/async-functions/evaluation/async-class-decl-static-method.template b/src/async-functions/evaluation/async-class-decl-static-method.template new file mode 100644 index 0000000000..2d2be2ab9c --- /dev/null +++ b/src/async-functions/evaluation/async-class-decl-static-method.template @@ -0,0 +1,28 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/class/async-method-static/ +name: Static async method as a ClassDeclaration element +esid: prod-AsyncMethod +info: | + ClassElement : + static MethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +class C { + static async method(/*{ params }*/) { + /*{ body }*/ + } +} +// Stores a reference `asyncFn` for case evaluation +let asyncFn = C.method; diff --git a/src/async-functions/evaluation/async-class-decl-static-private-method.template b/src/async-functions/evaluation/async-class-decl-static-private-method.template new file mode 100644 index 0000000000..8b6366778a --- /dev/null +++ b/src/async-functions/evaluation/async-class-decl-static-private-method.template @@ -0,0 +1,31 @@ +// Copyright (C) 2018 Bloomberg LP. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/class/elements/async-private-method-static/ +name: Static async private method as a ClassDeclaration element +esid: prod-AsyncMethod +info: | + ClassElement : + static PrivateMethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions, class-static-methods-private] +---*/ + +class C { + static async #method(/*{ params }*/) { + /*{ body }*/ + } + static async method(/*{ params }*/) { + return this.#method(/*{ params }*/); + } +} +// Stores a reference `asyncFn` for case evaluation +let asyncFn = C.method.bind(C); diff --git a/src/async-functions/evaluation/async-class-expr-method.template b/src/async-functions/evaluation/async-class-expr-method.template new file mode 100644 index 0000000000..70327b5248 --- /dev/null +++ b/src/async-functions/evaluation/async-class-expr-method.template @@ -0,0 +1,29 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/class/async-method/ +name: Async method as a ClassExpression element +esid: prod-AsyncMethod +info: | + ClassElement : + MethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +var C = class { + async method(/*{ params }*/) { + /*{ body }*/ + } +}; +// Stores a reference `asyncFn` for case evaluation +let c = new C(); +let asyncFn = c.method.bind(c); diff --git a/src/async-functions/evaluation/async-class-expr-private-method.template b/src/async-functions/evaluation/async-class-expr-private-method.template new file mode 100644 index 0000000000..100aacd0fe --- /dev/null +++ b/src/async-functions/evaluation/async-class-expr-private-method.template @@ -0,0 +1,32 @@ +// Copyright (C) 2018 Bloomberg LP. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/class/elements/async-private-method/ +name: Async private method as a ClassExpression element +esid: prod-AsyncMethod +info: | + ClassElement : + PrivateMethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions, class-methods-private] +---*/ + +var C = class { + async #method(/*{ params }*/) { + /*{ body }*/ + } + async method(/*{ params }*/) { + return this.#method(/*{ params }*/); + } +}; +// Stores a reference `asyncFn` for case evaluation +let c = new C(); +let asyncFn = c.method.bind(c); diff --git a/src/async-functions/evaluation/async-class-expr-static-method.template b/src/async-functions/evaluation/async-class-expr-static-method.template new file mode 100644 index 0000000000..f01c8a4b62 --- /dev/null +++ b/src/async-functions/evaluation/async-class-expr-static-method.template @@ -0,0 +1,28 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/class/async-method-static/ +name: Static async method as a ClassExpression element +esid: prod-AsyncMethod +info: | + ClassElement : + static MethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +var C = class { + static async method(/*{ params }*/) { + /*{ body }*/ + } +}; +// Stores a reference `asyncFn` for case evaluation +let asyncFn = C.method; diff --git a/src/async-functions/evaluation/async-class-expr-static-private-method.template b/src/async-functions/evaluation/async-class-expr-static-private-method.template new file mode 100644 index 0000000000..e7caf9e4c6 --- /dev/null +++ b/src/async-functions/evaluation/async-class-expr-static-private-method.template @@ -0,0 +1,31 @@ +// Copyright (C) 2018 Bloomberg LP. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/class/elements/async-private-method-static/ +name: Static private async method as a ClassExpression element +esid: prod-AsyncMethod +info: | + ClassElement : + static PrivateMethodDefinition + + MethodDefinition : + AsyncMethod + + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] # PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions, class-static-methods-private] +---*/ + +var C = class { + static async #method(/*{ params }*/) { + /*{ body }*/ + } + static async method(/*{ params }*/) { + return this.#method(/*{ params }*/); + } +} +// Stores a reference `asyncFn` for case evaluation +let asyncFn = C.method.bind(C); diff --git a/src/async-functions/evaluation/async-declaration.template b/src/async-functions/evaluation/async-declaration.template new file mode 100644 index 0000000000..3c82c1749a --- /dev/null +++ b/src/async-functions/evaluation/async-declaration.template @@ -0,0 +1,18 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/statements/async-function/ +name: Async function declaration +esid: prod-AsyncFunctionDeclaration +info: | + Async Function Definitions + + AsyncFunctionDeclaration: + async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +async function asyncFn(/*{ params }*/) { + /*{ body }*/ +} diff --git a/src/async-functions/evaluation/async-expression-named.template b/src/async-functions/evaluation/async-expression-named.template new file mode 100644 index 0000000000..9d112dba54 --- /dev/null +++ b/src/async-functions/evaluation/async-expression-named.template @@ -0,0 +1,18 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/async-function/named- +name: Named async function expression +esid: prod-AsyncFunctionExpression +info: | + Async Function Definitions + + AsyncFunctionExpression : + async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +var asyncFn = async function asyncFn(/*{ params }*/) { + /*{ body }*/ +}; diff --git a/src/async-functions/evaluation/async-expression.template b/src/async-functions/evaluation/async-expression.template new file mode 100644 index 0000000000..6603704cdf --- /dev/null +++ b/src/async-functions/evaluation/async-expression.template @@ -0,0 +1,18 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/async-function/ +name: Unnamed async function expression +esid: prod-AsyncFunctionExpression +info: | + Async Function Definitions + + AsyncFunctionExpression : + async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +var asyncFn = async function (/*{ params }*/) { + /*{ body }*/ +}; diff --git a/src/async-functions/evaluation/async-obj-method.template b/src/async-functions/evaluation/async-obj-method.template new file mode 100644 index 0000000000..fb09563e97 --- /dev/null +++ b/src/async-functions/evaluation/async-obj-method.template @@ -0,0 +1,22 @@ +// Copyright (C) 2017 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +path: language/expressions/object/method-definition/async- +name: Async method +esid: prod-AsyncMethod +info: | + Async Function Definitions + + AsyncMethod : + async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody } +features: [async-functions] +---*/ + +var obj = { + async method(/*{ params }*/) { + /*{ body }*/ + } +}; +// Stores a reference `asyncFn` for case evaluation +let asyncFn = obj.method; diff --git a/src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case b/src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case index 7868b52aa8..769afc829c 100644 --- a/src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case +++ b/src/async-functions/returns-async-arrow-returns-arguments-from-parent-function.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/returns-async-arrow-returns-newtarget.case b/src/async-functions/returns-async-arrow-returns-newtarget.case index 3fe4fa7ecb..361714e3fc 100644 --- a/src/async-functions/returns-async-arrow-returns-newtarget.case +++ b/src/async-functions/returns-async-arrow-returns-newtarget.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/returns-async-arrow.case b/src/async-functions/returns-async-arrow.case index e6469869e3..30048d98dd 100644 --- a/src/async-functions/returns-async-arrow.case +++ b/src/async-functions/returns-async-arrow.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/returns-async-function-returns-arguments-from-own-function.case b/src/async-functions/returns-async-function-returns-arguments-from-own-function.case index 17240f4b55..4c8f5e3cae 100644 --- a/src/async-functions/returns-async-function-returns-arguments-from-own-function.case +++ b/src/async-functions/returns-async-function-returns-arguments-from-own-function.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/returns-async-function-returns-newtarget.case b/src/async-functions/returns-async-function-returns-newtarget.case index 5123685772..800f775c28 100644 --- a/src/async-functions/returns-async-function-returns-newtarget.case +++ b/src/async-functions/returns-async-function-returns-newtarget.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/returns-async-function.case b/src/async-functions/returns-async-function.case index 3eb62cb343..c4a4547b49 100644 --- a/src/async-functions/returns-async-function.case +++ b/src/async-functions/returns-async-function.case @@ -6,10 +6,10 @@ esid: sec-async-arrow-function-definitions desc: > Async function returns an async function. templates: - - syntax/async-class-*.template - - syntax/async-declaration.template - - syntax/async-expression-*.template - - syntax/async-obj-method.template + - evaluation/async-class-*.template + - evaluation/async-declaration.template + - evaluation/async-expression-*.template + - evaluation/async-obj-method.template flags: [async] ---*/ diff --git a/src/async-functions/syntax/async-class-decl-method.template b/src/async-functions/syntax/async-class-decl-method.template index f9911195df..2d40c7e169 100644 --- a/src/async-functions/syntax/async-class-decl-method.template +++ b/src/async-functions/syntax/async-class-decl-method.template @@ -24,6 +24,3 @@ class C { /*{ body }*/ } } -// Stores a reference `asyncFn` for case evaluation -let c = new C(); -let asyncFn = c.method.bind(c); diff --git a/src/async-functions/syntax/async-class-decl-private-method.template b/src/async-functions/syntax/async-class-decl-private-method.template index 99f23261c7..5240943750 100644 --- a/src/async-functions/syntax/async-class-decl-private-method.template +++ b/src/async-functions/syntax/async-class-decl-private-method.template @@ -23,10 +23,4 @@ class C { async #method(/*{ params }*/) { /*{ body }*/ } - async method(/*{ params }*/) { - return this.#method(/*{ params }*/); - } } -// Stores a reference `asyncFn` for case evaluation -let c = new C(); -let asyncFn = c.method.bind(c); diff --git a/src/async-functions/syntax/async-class-decl-static-method.template b/src/async-functions/syntax/async-class-decl-static-method.template index d77769e622..1f3a73ea73 100644 --- a/src/async-functions/syntax/async-class-decl-static-method.template +++ b/src/async-functions/syntax/async-class-decl-static-method.template @@ -24,6 +24,4 @@ class C { /*{ body }*/ } } -// Stores a reference `asyncFn` for case evaluation -let asyncFn = C.method; diff --git a/src/async-functions/syntax/async-class-decl-static-private-method.template b/src/async-functions/syntax/async-class-decl-static-private-method.template index 8408b6d689..0c06e0fb86 100644 --- a/src/async-functions/syntax/async-class-decl-static-private-method.template +++ b/src/async-functions/syntax/async-class-decl-static-private-method.template @@ -23,10 +23,6 @@ class C { static async #method(/*{ params }*/) { /*{ body }*/ } - static async method(/*{ params }*/) { - return this.#method(/*{ params }*/); - } } -// Stores a reference `asyncFn` for case evaluation -let asyncFn = C.method.bind(C); + diff --git a/src/async-functions/syntax/async-class-expr-method.template b/src/async-functions/syntax/async-class-expr-method.template index f352be40ed..34910b715b 100644 --- a/src/async-functions/syntax/async-class-expr-method.template +++ b/src/async-functions/syntax/async-class-expr-method.template @@ -24,7 +24,4 @@ var C = class { /*{ body }*/ } }; -// Stores a reference `asyncFn` for case evaluation -let c = new C(); -let asyncFn = c.method.bind(c); diff --git a/src/async-functions/syntax/async-class-expr-private-method.template b/src/async-functions/syntax/async-class-expr-private-method.template index 100aacd0fe..590dad467e 100644 --- a/src/async-functions/syntax/async-class-expr-private-method.template +++ b/src/async-functions/syntax/async-class-expr-private-method.template @@ -23,10 +23,4 @@ var C = class { async #method(/*{ params }*/) { /*{ body }*/ } - async method(/*{ params }*/) { - return this.#method(/*{ params }*/); - } }; -// Stores a reference `asyncFn` for case evaluation -let c = new C(); -let asyncFn = c.method.bind(c); diff --git a/src/async-functions/syntax/async-class-expr-static-method.template b/src/async-functions/syntax/async-class-expr-static-method.template index f01c8a4b62..fe92e61234 100644 --- a/src/async-functions/syntax/async-class-expr-static-method.template +++ b/src/async-functions/syntax/async-class-expr-static-method.template @@ -24,5 +24,3 @@ var C = class { /*{ body }*/ } }; -// Stores a reference `asyncFn` for case evaluation -let asyncFn = C.method; diff --git a/src/async-functions/syntax/async-class-expr-static-private-method.template b/src/async-functions/syntax/async-class-expr-static-private-method.template index e7caf9e4c6..37577940b2 100644 --- a/src/async-functions/syntax/async-class-expr-static-private-method.template +++ b/src/async-functions/syntax/async-class-expr-static-private-method.template @@ -23,9 +23,4 @@ var C = class { static async #method(/*{ params }*/) { /*{ body }*/ } - static async method(/*{ params }*/) { - return this.#method(/*{ params }*/); - } } -// Stores a reference `asyncFn` for case evaluation -let asyncFn = C.method.bind(C); diff --git a/src/async-functions/syntax/async-obj-method.template b/src/async-functions/syntax/async-obj-method.template index fb09563e97..5d454b2ed6 100644 --- a/src/async-functions/syntax/async-obj-method.template +++ b/src/async-functions/syntax/async-obj-method.template @@ -18,5 +18,3 @@ var obj = { /*{ body }*/ } }; -// Stores a reference `asyncFn` for case evaluation -let asyncFn = obj.method;