From e31f0a7d25668d3c1531294d2ef44a9f3bde4ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 16 Aug 2019 11:32:46 +0200 Subject: deps: update V8 to 7.7.299.4 PR-URL: https://github.com/nodejs/node/pull/28918 Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Jiawen Geng Reviewed-By: Rich Trott --- deps/v8/test/mjsunit/modules-export-star-as2.mjs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deps/v8/test/mjsunit/modules-export-star-as2.mjs (limited to 'deps/v8/test/mjsunit/modules-export-star-as2.mjs') diff --git a/deps/v8/test/mjsunit/modules-export-star-as2.mjs b/deps/v8/test/mjsunit/modules-export-star-as2.mjs new file mode 100644 index 0000000000..86be1c2b7c --- /dev/null +++ b/deps/v8/test/mjsunit/modules-export-star-as2.mjs @@ -0,0 +1,17 @@ +// 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: --harmony-namespace-exports + +export * as self from "./modules-export-star-as2.mjs"; +export * as self_again from "./modules-export-star-as2.mjs"; +import {self as myself} from "./modules-export-star-as2.mjs"; +import {self_again as myself_again} from "./modules-export-star-as2.mjs"; + +assertEquals(["self", "self_again"], Object.keys(myself)); +assertEquals(myself, myself.self); +assertEquals(myself_again, myself.self_again); +assertEquals(myself, myself_again); + +assertThrows(_ => self, ReferenceError); +assertThrows(_ => self_again, ReferenceError); -- cgit v1.2.1