age = canvas.transferToImageBitmap();

      self.postMessage({ bitmap: image },
                       [ image ]);
  };
  </script>
  <script>
    "use strict";
    description("This test ensures that the transferToImageBitmap function of OffscreenCanvas webgl2 context is functional.");
    if (!window.OffscreenCanvas) {
        testPassed("No OffscreenCanvas support");
        finishTest();
    } else {
      var blob = new Blob([document.getElementById('myWorker').textContent]);
      var worker = new Wo