summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/mochitest/class_static_worker.js
blob: eb949226baa9f4602687beaf3bba030bb248db0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class A {
  static { this.x = 12; }
}


self.onmessage = function (e) {
  console.log(e)
  if (e.data == 'get') {
    postMessage(A.x);
    return;
  }
  postMessage('Unknown message type.');
}