| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <fstream> | 5 #include <fstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/interpreter/bytecode-array-iterator.h" | 9 #include "src/interpreter/bytecode-array-iterator.h" |
| 10 #include "src/interpreter/bytecode-generator.h" | 10 #include "src/interpreter/bytecode-generator.h" |
| (...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 "foo++;\n" | 2231 "foo++;\n" |
| 2232 "{ let x; { foo++ } };\n", | 2232 "{ let x; { foo++ } };\n", |
| 2233 | 2233 |
| 2234 "export default (function () {});\n", | 2234 "export default (function () {});\n", |
| 2235 | 2235 |
| 2236 "export default (class {});\n", | 2236 "export default (class {});\n", |
| 2237 | 2237 |
| 2238 "export {foo as goo} from \"bar\"\n", | 2238 "export {foo as goo} from \"bar\"\n", |
| 2239 | 2239 |
| 2240 "export * from \"bar\"\n", | 2240 "export * from \"bar\"\n", |
| 2241 |
| 2242 "import * as foo from \"bar\"\n" |
| 2243 "foo.f(foo, foo.x);\n", |
| 2241 }; | 2244 }; |
| 2242 | 2245 |
| 2243 CHECK(CompareTexts(BuildActual(printer, snippets), | 2246 CHECK(CompareTexts(BuildActual(printer, snippets), |
| 2244 LoadGolden("Modules.golden"))); | 2247 LoadGolden("Modules.golden"))); |
| 2245 } | 2248 } |
| 2246 | 2249 |
| 2247 } // namespace interpreter | 2250 } // namespace interpreter |
| 2248 } // namespace internal | 2251 } // namespace internal |
| 2249 } // namespace v8 | 2252 } // namespace v8 |
| OLD | NEW |