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
/
private_field_worker.js
blob
b822c162488fab050a4498880fd2b973a3724040
1
class A {
2
#x;
3
4
g(o) {
5
return #x in o;
6
}
7
}
8
9
let objects = [];
10
11
self.onmessage = function (e) {
12
if (e.data === 'allocate') {
13
objects.push(new A);
14
return;
15
}
16
if (e.data == 'count') {
17
postMessage(objects.length);
18
return;
19
}
20
postMessage('Unknown message type.');
21
}