Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
// Copyright 2018 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 list = [];
function log(item) { list.push(item); }
async function f() {
try {
let namespace = await import(/a/);
} catch(e) {
log(1);
}
f();
async function importUndefined() {
await import({ get toString() { return undefined; }})
log(2);
function g() {
let namespace = Promise.resolve().then(importUndefined);
g();
%RunMicrotasks();
assertEquals(list, [1,2]);