repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git]
/
js
/
xpconnect
/
tests
/
mochitest
/
class_static_worker.js
blob
eb949226baa9f4602687beaf3bba030bb248db0c
1
class A {
2
static { this.x = 12; }
3
}
4
5
6
self.onmessage = function (e) {
7
console.log(e)
8
if (e.data == 'get') {
9
postMessage(A.x);
10
return;
11
}
12
postMessage('Unknown message type.');
13
}