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

Unified Diff: test/mjsunit/harmony/module-parsing.js

Issue 9615009: Basic interface inference for modules. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Eps. Created 8 years, 9 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 | « src/variables.cc ('k') | test/mjsunit/harmony/module-resolution.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/module-parsing.js
diff --git a/test/mjsunit/harmony/module-parsing.js b/test/mjsunit/harmony/module-parsing.js
index cf5650226c4e24dfe9347cba438bbc0da87b1f26..93e69e3ad9c2690682034befb670518344061d1c 100644
--- a/test/mjsunit/harmony/module-parsing.js
+++ b/test/mjsunit/harmony/module-parsing.js
@@ -1,4 +1,4 @@
-// Copyright 2011 the V8 project authors. All rights reserved.
+// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -27,7 +27,7 @@
// Flags: --harmony-modules
-// Test basic module syntax, with and without ASI.
+// Test basic module syntax, with and without automatic semicolon insertion.
module A {}
@@ -36,8 +36,8 @@ module A2 = A;
module A3 = A2
module B {
- export x
- export y, z, c, f
+ export vx
+ export vy, lz, c, f
var vx
var vx, vy;
@@ -47,9 +47,11 @@ module B {
const c = 9
function f() {}
- module C {
+ module C0 {}
+
+ export module C {
let x
- module D {}
+ export module D { export let x }
let y
}
@@ -67,10 +69,15 @@ module B {
export module M3 at "http://where"
import i0 from I
- import i1, i2, i3 from I
+ import i1, i2, i3, M from I
import i4, i5 from "http://where"
}
+module I {
+ export let i0, i1, i2, i3;
+ export module M {}
+}
+
module C1 = B.C;
module D1 = B.C.D
module D2 = C1.D
@@ -80,7 +87,6 @@ module E1 at "http://where"
module E2 at "http://where";
module E3 = E1.F
-
// Check that ASI does not interfere.
module X
@@ -103,6 +109,7 @@ y
from
"file://local"
+
module Wrap {
export
x
@@ -135,6 +142,9 @@ module V
}
}
+export A, A1, A2, A3, B, I, C1, D1, D2, D3, E1, E2, E3, X, Y, Z, Wrap, x, y, UU
+
+
// Check that 'module' still works as an identifier.
« no previous file with comments | « src/variables.cc ('k') | test/mjsunit/harmony/module-resolution.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698