1 Test WorkerContext.close functionality. Should print a series of PASS messages, followed with DONE.
3 PASS: typeof close: function
4 PASS: received message before close
5 PASS: Received message posted right after close() was invoked: Should be delivered
6 PASS: no messages arrive to worker after JS fragment with close() exits
7 PASS: Error arrived after close: Uncaught ReferenceError: nonExistentFunction is not defined
8 PASS: close() did not dispatch pending events
9 PASS: Received message after worker closed: Should be delivered