Skip to content

Instantly share code, notes, and snippets.

View sujoyu's full-sized avatar

すじょうゆ sujoyu

View GitHub Profile
@sujoyu
sujoyu / WorkerMain.scala
Last active December 1, 2016 09:47 — forked from ochrons/WorkerMain.scala
Web Worker PoC in Scala.js
package poc
import org.scalajs.dom
import scala.scalajs.js
import scala.scalajs.js.annotation.JSExport
@js.native
object WorkerGlobal extends js.GlobalScope {
def addEventListener(`type`: String, f: js.Function): Unit = js.native