| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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 print('Checks basic ES6 modules support.'); | 5 InspectorTest.log('Checks basic ES6 modules support.'); |
| 6 | 6 |
| 7 var module1 = ` | 7 var module1 = ` |
| 8 export function foo() { | 8 export function foo() { |
| 9 console.log('module1'); | 9 console.log('module1'); |
| 10 return 42; | 10 return 42; |
| 11 } | 11 } |
| 12 export let a1 = 1`; | 12 export let a1 = 1`; |
| 13 | 13 |
| 14 var module2 = ` | 14 var module2 = ` |
| 15 export function foo() { | 15 export function foo() { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 Protocol.Runtime.onExceptionThrown(InspectorTest.logMessage); | 52 Protocol.Runtime.onExceptionThrown(InspectorTest.logMessage); |
| 53 | 53 |
| 54 Protocol.Runtime.enable(); | 54 Protocol.Runtime.enable(); |
| 55 Protocol.Debugger.enable() | 55 Protocol.Debugger.enable() |
| 56 .then(() => InspectorTest.addModule(module1, "module1")) | 56 .then(() => InspectorTest.addModule(module1, "module1")) |
| 57 .then(() => InspectorTest.addModule(module2, "module2")) | 57 .then(() => InspectorTest.addModule(module2, "module2")) |
| 58 .then(() => InspectorTest.addModule(module3, "module3")) | 58 .then(() => InspectorTest.addModule(module3, "module3")) |
| 59 .then(() => InspectorTest.addModule(module4, "module4")) | 59 .then(() => InspectorTest.addModule(module4, "module4")) |
| 60 .then(() => InspectorTest.waitPendingTasks()) | 60 .then(() => InspectorTest.waitPendingTasks()) |
| 61 .then(InspectorTest.completeTest); | 61 .then(InspectorTest.completeTest); |
| OLD | NEW |