| Index: test/mjsunit/harmony/async-await-basic.js
|
| diff --git a/test/mjsunit/harmony/async-await-basic.js b/test/mjsunit/harmony/async-await-basic.js
|
| index 35bcb109ed3e45cab3bf11ab88d967305f4a6058..1d3d533ec3a94d1b7a5690f9a7a0181064d750bc 100644
|
| --- a/test/mjsunit/harmony/async-await-basic.js
|
| +++ b/test/mjsunit/harmony/async-await-basic.js
|
| @@ -70,6 +70,15 @@ function assertEqualsAsync(expected, run, msg) {
|
| assertEquals(undefined, this.AsyncFunction);
|
| let AsyncFunction = (async function() {}).constructor;
|
|
|
| +// The AsyncFunction Constructor is the %AsyncFunction% intrinsic object and
|
| +// is a subclass of Function.
|
| +// (https://tc39.github.io/ecmascript-asyncawait/#async-function-constructor)
|
| +assertEquals(Object.getPrototypeOf(AsyncFunction), Function);
|
| +assertEquals(Object.getPrototypeOf(AsyncFunction.prototype),
|
| + Function.prototype);
|
| +assertTrue(async function() {} instanceof Function);
|
| +
|
| +
|
| // Let functionPrototype be the intrinsic object %AsyncFunctionPrototype%.
|
| async function asyncFunctionForProto() {}
|
| assertEquals(AsyncFunction.prototype,
|
|
|