mirror of https://github.com/tc39/test262.git
17 lines
390 B
JavaScript
17 lines
390 B
JavaScript
// Copyright 2016 Microsoft, Inc. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
author: Brian Terlson <brian.terlson@microsoft.com>
|
|
esid: pending
|
|
description: >
|
|
Async function instances are not constructors and do not have a
|
|
[[Construct]] slot.
|
|
---*/
|
|
|
|
async function foo() { }
|
|
assert.throws(TypeError, function() {
|
|
new foo();
|
|
});
|
|
|