1

Is this possible, from say :

app.js :

...

var w = new Worker("data:application/dart;charset=US-ASCII," + dart_code );

// will this break or continue?

Does anyone who uses Dartium (the Chromium + Dart VM browser) do this?

Cris
  • 441
  • 3
  • 11
  • I haven't seen this done. is JS necessary? you could just use [dart isolates](http://stackoverflow.com/a/21226025/1919627). – ringstaff Jun 03 '14 at 21:06

1 Answers1

0

Today it doesn't work. (Just tested with dart 1.4)

Actually, all the work done is more on how to bring existing js library or other in dart than the inverse.

to do this (Js in dart) you can use the dart:js module. This will allow you to use js lib or function in your dart code.

Vink
  • 1,267
  • 9
  • 13