Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / class_static_worker.js
blobeb949226baa9f4602687beaf3bba030bb248db0c
1 class A {
2   static { this.x = 12; }
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.');