Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2126)

Unified Diff: test/mjsunit/modules-default-name1.js

Issue 2372873002: [modules] Add tests for the name property of default-exported functions. (Closed)
Patch Set: More Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/modules-default-name2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-default-name1.js
diff --git a/test/mjsunit/modules-default-name1.js b/test/mjsunit/modules-default-name1.js
new file mode 100644
index 0000000000000000000000000000000000000000..54c3afeec59923c2fe130826aa3eb1b1507bd695
--- /dev/null
+++ b/test/mjsunit/modules-default-name1.js
@@ -0,0 +1,10 @@
+// Copyright 2016 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.
+//
+// MODULE
+
+import {default as goo} from "modules-skip-default-name1.js";
+assertEquals(
+ {value: "gaga", configurable: true, writable: false, enumerable: false},
+ Reflect.getOwnPropertyDescriptor(goo, 'name'));
« no previous file with comments | « no previous file | test/mjsunit/modules-default-name2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698