Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / resources / throw-on-message-worker.js
blobdda5e7e9e44e2483d32ea8005769e75287e6c487
1 self.onerror = function(evt) {
2 postMessage('error');
3 return true;
6 self.onmessage = function(evt) {
7 if (evt.data === "first")
8 throw Error();
9 else
10 postMessage(evt.data);