mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Fix dataTransferItemList indexing
BUG= Review URL: https://codereview.chromium.org/2326113002 .
This commit is contained in:
parent
7fd0aa00de
commit
42f8ab2d6a
|
@ -9381,7 +9381,7 @@ class DataTransferItemList extends DartHtmlDomObject {
|
|||
// TODO(alanknight): I think that all the __getter__ generators should just
|
||||
// do property access, but that's major surgery. This one is a problem, so
|
||||
// just hard-code it for now.
|
||||
return _blink.Blink_JsNative_DomException.getProperty(this, index);
|
||||
return _blink.Blink_JsNative_DomException.getProperty(this, index.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ $else
|
|||
// TODO(alanknight): I think that all the __getter__ generators should just
|
||||
// do property access, but that's major surgery. This one is a problem, so
|
||||
// just hard-code it for now.
|
||||
return _blink.Blink_JsNative_DomException.getProperty(this, index);
|
||||
return _blink.Blink_JsNative_DomException.getProperty(this, index.toString());
|
||||
$endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue