dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.58k forks source link

dart2js does not run in node #11347

Closed DartBot closed 9 years ago

DartBot commented 11 years ago

This issue was originally filed by exby2...@gmail.com


What steps will reproduce the problem?

  1. sample programm main() {       print('Hello, Dart!'); }
  2. dart2js test.dart
  3. node out.js

What is the expected output? What do you see instead?

undefined:3 var properties = Isolate.$isolateProperties;                  ^ ReferenceError: Isolate is not defined     at new eval (eval at <anonymous> (/tbHD/Home/nairboon/tmp/plb/sudoku/out.js:119:22), <anonymous>:3:18)     at Object.<anonymous> (/tbHD/Home/nairboon/tmp/plb/sudoku/out.js:84:9)     at Module._compile (module.js:456:26)     at Object.Module._extensions..js (module.js:474:10)     at Module.load (module.js:356:32)     at Function.Module._load (module.js:312:12)     at Function.Module.runMain (module.js:497:10)     at startup (node.js:119:16)     at node.js:901:3

What version of the product are you using? On what operating system?

Dart-to-JavaScript compiler (dart2js) version: 0.5.16.0_r23799 node: v0.10.11

madsager commented 11 years ago

Added Area-Dart2JS, Triaged labels.

kasperl commented 11 years ago

Added this to the Later milestone. Removed Type-Defect, Priority-Unassigned labels. Added Type-Enhancement, Priority-Low labels.

DartBot commented 10 years ago

This comment was originally written by jorat1346...@gmail.com


Using Dart 1.2 and Node v0.10.26, I get no error.

floitschG commented 10 years ago

Tried with bleeding edge. No issues, either.


Added AssumedStale label.