Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to enter Dart code directly into the Chromium Dev Tools Console?

Tags:

dart

dartium

I am running the latest Chromium build, with the Dart VM. I would like to start playing with Dart's HTML library by messing around with websites, using the Console to enter Dart commands. Obviously, this is easy with Javascript, but I can't work out how to tell the console that I am entering Dart, not JS.

Is this possible?

like image 759
Andy Burnett Avatar asked Feb 10 '13 00:02

Andy Burnett


1 Answers

It is not. I actually requested this feature on the bug tracker a while back but I can't seem to find it. IIRC, it has to do with the fact that you'd have to be running the code within a particular isolate, which at the moment is not possible. In javascript, everything is global so there is a fundamental difference.

like image 191
w.brian Avatar answered Nov 15 '22 05:11

w.brian