repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
workers
/
resources
/
throw-on-message-worker.js
blob
dda5e7e9e44e2483d32ea8005769e75287e6c487
1
self
.
onerror
=
function
(
evt
) {
2
postMessage
(
'error'
);
3
return true
;
4
}
5
6
self
.
onmessage
=
function
(
evt
) {
7
if
(
evt
.
data
===
"first"
)
8
throw
Error
();
9
else
10
postMessage
(
evt
.
data
);
11
}