| OLD | NEW |
| 1 // Modified embenchen to direct to asm-wasm. | 1 // Modified embenchen to direct to asm-wasm. |
| 2 // Flags: --validate-asm --allow-natives-syntax | 2 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm |
| 3 | 3 |
| 4 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; | 4 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; |
| 5 var Module = { | 5 var Module = { |
| 6 arguments: [1], | 6 arguments: [1], |
| 7 print: function(x) {Module.printBuffer += x + '\n';}, | 7 print: function(x) {Module.printBuffer += x + '\n';}, |
| 8 preRun: [function() {Module.printBuffer = ''}], | 8 preRun: [function() {Module.printBuffer = ''}], |
| 9 postRun: [function() { | 9 postRun: [function() { |
| 10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); | 10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); |
| 11 }], | 11 }], |
| 12 }; | 12 }; |
| (...skipping 14735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14748 } | 14748 } |
| 14749 | 14749 |
| 14750 // shouldRunNow refers to calling main(), not run(). | 14750 // shouldRunNow refers to calling main(), not run(). |
| 14751 var shouldRunNow = true; | 14751 var shouldRunNow = true; |
| 14752 if (Module['noInitialRun']) { | 14752 if (Module['noInitialRun']) { |
| 14753 shouldRunNow = false; | 14753 shouldRunNow = false; |
| 14754 } | 14754 } |
| 14755 | 14755 |
| 14756 | 14756 |
| 14757 run([].concat(Module["arguments"])); | 14757 run([].concat(Module["arguments"])); |
| OLD | NEW |