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

Compilation using dart2js throwsTypeError: Object #<DataTransferItemList> has no method 'item' #12955

Closed
DartBot opened this issue Aug 31, 2013 · 7 comments
Labels
closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@DartBot
Copy link

DartBot commented Aug 31, 2013

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


I've got a minimal setup at https://github.com/robsyme/dartbug-DataTransferItemList to replicate the error.

What steps will reproduce the problem?

  1. git clone https://github.com/robsyme/dartbug-DataTransferItemList.git
  2. cd dartbug-DataTransferItemList
  3. cd app
  4. dart2js --verbose -o error.dart.js error.dart
  5. Open web error.html in chrome or firefox
  6. Open javascript console.
  7. Drag file into the white box.

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

I expect that the file name of the dragged file printed to the console. Instead, an error is thrown:

Uncaught TypeError: Object #<DataTransferItemList> has no method 'item'

When run in dartium (after the relevant script tags have been changed in error.html), the file path is printed as expected.
The docs at http://api.dartlang.org/docs/releases/latest/dart_html/DataTransferItemList.html#item suggest that there is a method 'item'.

What version of the product are you using? On what operating system?
Ubuntu Linux
Chrome Version 31.0.1612.0 dev
Mozilla Firefox 23.0
Dart VM version: 0.6.19.0_r26297 (Sat Aug 17 07:12:38 2013) on "linux_x64"
Dart Editor version 0.6.19_r26297

@larsbak
Copy link

larsbak commented Sep 2, 2013

Added Area-Dart2JS, Triaged labels.

@kasperl
Copy link

kasperl commented Sep 18, 2013

Added this to the M7 milestone.

@kasperl
Copy link

kasperl commented Sep 30, 2013

Removed Priority-Unassigned label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Oct 2, 2013

Removed this from the M7 milestone.
Added this to the M8 milestone.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the M8 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@sigmundch sigmundch added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants