OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 // prevent recursion |
| 3 if ('beenThere' in self) { |
| 4 throw 'undefined stringified to the empty string'; |
| 5 } |
| 6 beenThere = true; |
| 7 try { |
| 8 importScripts(undefined); |
| 9 postMessage(got); |
| 10 } catch(ex) { |
| 11 postMessage(String(ex)); |
| 12 } |
| 13 /* |
| 14 --> |
| 15 <!doctype html> |
| 16 <title>importScripts(undefined)</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, 'undefined'); |
| 25 this.done(); |
| 26 }) |
| 27 worker.onerror = this.step_func(function(e) { |
| 28 assert_unreached(e.message); |
| 29 }); |
| 30 }); |
| 31 </script> |
| 32 <!-- |
| 33 */ |
| 34 //--> |
OLD | NEW |