mirror of https://github.com/tc39/test262.git
ExportDeclaration : HoistableDeclaration; Fixes gh-2068 (#2737)
This commit is contained in:
parent
d6fba2035b
commit
ced63df97b
|
@ -0,0 +1,23 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : AsyncFunctionDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
AsyncFunctionDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
class A {};
|
||||
export default async function A() {}
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : AsyncFunctionDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
AsyncFunctionDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
export default async function A() {}
|
||||
A.foo = '';
|
|
@ -0,0 +1,23 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : AsyncGeneratorDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
AsyncGeneratorDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
class AG {}
|
||||
export default async function * AG() {}
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : AsyncGeneratorDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
AsyncGeneratorDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
export default async function * AG() {}
|
||||
AG.foo = '';
|
|
@ -0,0 +1,24 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : FunctionDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
FunctionDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
class F {}
|
||||
export default function F() {}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : FunctionDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
FunctionDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
export default function F() {}
|
||||
F.foo = '';
|
|
@ -0,0 +1,23 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : GeneratorDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
GeneratorDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
class G {}
|
||||
export default function * G() {}
|
|
@ -0,0 +1,18 @@
|
|||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ExportDeclaration : HoistableDeclaration : GeneratorDeclaration
|
||||
esid: prod-HoistableDeclaration
|
||||
info: |
|
||||
ExportDeclaration :
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
|
||||
HoistableDeclaration[Yield, Await, Default]:
|
||||
GeneratorDeclaration[?Yield, ?Await, ?Default]
|
||||
|
||||
flags: [module]
|
||||
---*/
|
||||
|
||||
export default function * G() {}
|
||||
G.foo = '';
|
Loading…
Reference in New Issue