OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 export let y1 = 0, y2 | 63 export let y1 = 0, y2 |
64 export const z0 = 0 | 64 export const z0 = 0 |
65 export const z1 = 2, z2 = 3 | 65 export const z1 = 2, z2 = 3 |
66 export function f0() {} | 66 export function f0() {} |
67 export module M1 {} | 67 export module M1 {} |
68 export module M2 = C.D | 68 export module M2 = C.D |
69 export module M3 at "http://where" | 69 export module M3 at "http://where" |
70 | 70 |
71 import i0 from I | 71 import i0 from I |
72 import i1, i2, i3, M from I | 72 import i1, i2, i3, M from I |
73 import i4, i5 from "http://where" | 73 //import i4, i5 from "http://where" |
74 } | 74 } |
75 | 75 |
76 module I { | 76 module I { |
77 export let i0, i1, i2, i3; | 77 export let i0, i1, i2, i3; |
78 export module M {} | 78 export module M {} |
79 } | 79 } |
80 | 80 |
81 module C1 = B.C; | 81 module C1 = B.C; |
82 module D1 = B.C.D | 82 module D1 = B.C.D |
83 module D2 = C1.D | 83 module D2 = C1.D |
84 module D3 = D2 | 84 module D3 = D2 |
85 | 85 |
86 module E1 at "http://where" | 86 module E1 at "http://where" |
87 module E2 at "http://where"; | 87 module E2 at "http://where"; |
88 module E3 = E1.F | 88 module E3 = E1 |
89 | 89 |
90 // Check that ASI does not interfere. | 90 // Check that ASI does not interfere. |
91 | 91 |
92 module X | 92 module X |
93 { | 93 { |
94 let x | 94 let x |
95 } | 95 } |
96 | 96 |
97 module Y | 97 module Y |
98 = | 98 = |
99 X | 99 X |
100 | 100 |
101 module Z | 101 module Z |
102 at | 102 at |
103 "file://local" | 103 "file://local" |
104 | 104 |
105 import | 105 import |
106 x | 106 vx |
107 , | 107 , |
108 y | 108 vy |
109 from | 109 from |
110 "file://local" | 110 B |
111 | 111 |
112 | 112 |
113 module Wrap { | 113 module Wrap { |
114 export | 114 export |
115 x | 115 x |
116 , | 116 , |
117 y | 117 y |
118 | 118 |
119 export | 119 export |
120 var | 120 var |
(...skipping 29 matching lines...) Expand all Loading... |
150 | 150 |
151 var module | 151 var module |
152 module = {} | 152 module = {} |
153 module["a"] = 6 | 153 module["a"] = 6 |
154 function module() {} | 154 function module() {} |
155 function f(module) { return module } | 155 function f(module) { return module } |
156 try {} catch (module) {} | 156 try {} catch (module) {} |
157 | 157 |
158 module | 158 module |
159 v = 20 | 159 v = 20 |
OLD | NEW |