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

Unified Diff: test/mjsunit/modules-default-name6.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 | « test/mjsunit/modules-default-name5.js ('k') | test/mjsunit/modules-default-name7.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-default-name6.js
diff --git a/test/mjsunit/modules-default-name6.js b/test/mjsunit/modules-default-name6.js
new file mode 100644
index 0000000000000000000000000000000000000000..1ac1bcb0c91be1c0dcde24168be8933414131237
--- /dev/null
+++ b/test/mjsunit/modules-default-name6.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-name6.js";
+assertEquals(
+ {value: "default", configurable: true, writable: false, enumerable: false},
+ Reflect.getOwnPropertyDescriptor(goo, 'name'));
« no previous file with comments | « test/mjsunit/modules-default-name5.js ('k') | test/mjsunit/modules-default-name7.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698