96698b55e0
Per https://github.com/tc39/test262/pull/956, André believes that ASI should be permitted in these situations. BUG= R=marja@chromium.org, adamk@chromium.org, littledan@chromium.org Change-Id: I5602d8a507576607750ffa9e873e1bfa53dd3523 Reviewed-on: https://chromium-review.googlesource.com/472568 Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Caitlin Potter <caitp@igalia.com> Cr-Commit-Position: refs/heads/master@{#44585}
23 lines
433 B
JavaScript
23 lines
433 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
var let = 0;
|
|
async function asyncFn() {
|
|
let
|
|
await 0;
|
|
return 0;
|
|
}
|
|
|
|
asyncFn().then(value => {
|
|
assertEquals(0, value);
|
|
}, error => {
|
|
assertUnreachable();
|
|
}).catch(error => {
|
|
%AbortJS(String(error));
|
|
});
|
|
|
|
%RunMicrotasks();
|