| 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 = | 4 var EXPECTED_OUTPUT = |
| 5 /frame averages: .+ \+- .+, range: .+ to .+ \n/; | 5 /frame averages: .+ \+- .+, range: .+ to .+ \n/; |
| 6 var Module = { | 6 var Module = { |
| 7 arguments: [1], | 7 arguments: [1], |
| 8 print: function(x) {Module.printBuffer += x + '\n';}, | 8 print: function(x) {Module.printBuffer += x + '\n';}, |
| 9 preRun: [function() {Module.printBuffer = ''}], | 9 preRun: [function() {Module.printBuffer = ''}], |
| 10 postRun: [function() { | 10 postRun: [function() { |
| 11 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); | 11 assertTrue(EXPECTED_OUTPUT.test(Module.printBuffer)); |
| 12 }], | 12 }], |
| (...skipping 20305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20318 } | 20318 } |
| 20319 | 20319 |
| 20320 // shouldRunNow refers to calling main(), not run(). | 20320 // shouldRunNow refers to calling main(), not run(). |
| 20321 var shouldRunNow = true; | 20321 var shouldRunNow = true; |
| 20322 if (Module['noInitialRun']) { | 20322 if (Module['noInitialRun']) { |
| 20323 shouldRunNow = false; | 20323 shouldRunNow = false; |
| 20324 } | 20324 } |
| 20325 | 20325 |
| 20326 | 20326 |
| 20327 run([].concat(Module["arguments"])); | 20327 run([].concat(Module["arguments"])); |
| OLD | NEW |