Compilation using dart2js throwsTypeError: Object #<DataTransferItemList> has no method 'item' #12955
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
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?
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
The text was updated successfully, but these errors were encountered: