d02cb6f0ff
This implements the changes proposed at https://github.com/tc39/ecma262/pull/916. The API will be extended in a follow-up CL. R=adamk@chromium.org Bug: v8:1569 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng Change-Id: I79476b5b674c924fea390dff1b9bee7f86a111c6 Reviewed-on: https://chromium-review.googlesource.com/544970 Reviewed-by: Adam Klein <adamk@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#46289}
14 lines
429 B
JavaScript
14 lines
429 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 --harmony-dynamic-import
|
|
|
|
var error1, error2;
|
|
import('no-such-file').catch(e => error1 = e);
|
|
import('no-such-file').catch(e => error2 = e);
|
|
%RunMicrotasks();
|
|
|
|
assertEquals(error1, error2);
|
|
assertEquals(typeof error1, "string");
|