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

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

Issue 2362083002: [modules] Do basic linking. (Closed)
Patch Set: Rename files because the presubmit tool is so fragile. 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/mjsunit.status ('k') | test/mjsunit/modules-fail-1.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-default.js
diff --git a/test/mjsunit/modules-this.js b/test/mjsunit/modules-default.js
similarity index 56%
copy from test/mjsunit/modules-this.js
copy to test/mjsunit/modules-default.js
index 2c8fc74fe75aec57d5ab0df2370edbd43ed3a988..304703b246fb1fd935d54e1bf5af435f65465adb 100644
--- a/test/mjsunit/modules-this.js
+++ b/test/mjsunit/modules-default.js
@@ -1,7 +1,11 @@
// 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
-assertEquals(undefined, this);
+import foo from "modules-skip-1.js";
+assertEquals(42, foo);
+
+import {default as gaga} from "modules-skip-1.js";
+assertEquals(42, gaga);
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/mjsunit/modules-fail-1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698