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

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

Powered by Google App Engine
This is Rietveld 408576698