blob: 25774c2a30ccad9c53b02049748950f9049905f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// |reftest| shell-option(--enable-top-level-await) skip-if(!xulRuntime.shell) -- requires shell-options
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-AwaitExpression
description: >
await is not a keyword in script code
features: [top-level-await]
---*/
class await {}
assert.sameValue(new await instanceof await, true);
reportCompare(0, 0);
|