| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 var x; | |
| 3 var y; | |
| 4 var z; | |
| 5 try { | |
| 6 importScripts('data:text/javascript,x=1', | |
| 7 'data:text/javascript,throw 2', | |
| 8 'data:text/javascript,z=3'); | |
| 9 } catch(e) { | |
| 10 y = e; | |
| 11 } | |
| 12 postMessage([x, y, z]); | |
| 13 /* | |
| 14 --> | |
| 15 <!doctype html> | |
| 16 <title>importScripts uncaught exception</title> | |
| 17 <script src="/resources/testharness.js"></script> | |
| 18 <script src="/resources/testharnessreport.js"></script> | |
| 19 <div id="log"></div> | |
| 20 <script> | |
| 21 async_test(function() { | |
| 22 var worker = new Worker('#'); | |
| 23 worker.onmessage = this.step_func(function(e) { | |
| 24 assert_equals(e.data[0], 1); | |
| 25 assert_equals(e.data[1], 2); | |
| 26 assert_equals(e.data[2], undefined); | |
| 27 this.done(); | |
| 28 }); | |
| 29 }); | |
| 30 </script> | |
| 31 <!-- | |
| 32 */ | |
| 33 //--> | |
| OLD | NEW |