Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart:js on dart2js - Uncaught ReferenceError: DartObject is not defined #15931

Closed
rmacnak-google opened this issue Jan 7, 2014 · 5 comments
Closed
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-js type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@rmacnak-google
Copy link
Contributor

import 'dart:js';

main() {
  print(new Object());
  print(new JsObject(context['Date'], []));
  print(new JsObject(context['Image'], []));
}

dart2js/Chrome:
Uncaught ReferenceError: DartObject is not defined

Dartium:
Instance of 'Object'
Mon Jan 06 2014 16:13:19 GMT-0800 (PST)
[object HTMLImageElement]

Dart r31525
Chrome 32.0.1700.68 beta

@floitschG
Copy link
Contributor

Removed Area-Dart2JS label.
Added Area-Library label.

@DartBot
Copy link

DartBot commented Apr 4, 2014

This comment was originally written by ernest.mick...@gmail.com


I have the same error but only on a deploy environment.

@DartBot
Copy link

DartBot commented Apr 6, 2014

This comment was originally written by ernest.mickl...@gmail.com


Fixed by adding <script src="packages/browser/interop.js"></script> in html

@DartBot
Copy link

DartBot commented Apr 8, 2014

This comment was originally written by ta...@osd.dk


packages/browser/interop.js is deprecated and doesn't do anything (browser 0.10.0+)

@rmacnak-google rmacnak-google added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-js labels Apr 8, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@vsmenon vsmenon added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Jul 20, 2019
@joshualitt
Copy link
Contributor

This bug no longer seems to reproduce at TOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-js type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

6 participants