blob: 87827f5cc818b74050ba4d4c29f1ac365f98412d [file] [log] [blame]
// 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 arrow functions return promises
flags: [async]
---*/
var p = (async () => await 1 + await 2)();
assert(Object.getPrototypeOf(p) === Promise.prototype);
p.then(function (v) {
assert.sameValue(v, 3);
$DONE();
}, $DONE);