mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
Undo breaking change in dart:js_util
Change-Id: Idfb8d15310c01cfebe6ab9200dfec7c96fe3040d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135793 Reviewed-by: Vijay Menon <vsm@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
parent
06f86bf58a
commit
0a1e9f6ef0
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ import 'dart:_js_helper' show convertDartClosureToJS;
|
|||
/// converted into arrays. Strings, numbers, bools, and `@JS()` annotated
|
||||
/// objects are passed through unmodified. Dart objects are also passed through
|
||||
/// unmodified, but their members aren't usable from JavaScript.
|
||||
Object jsify(Object object) {
|
||||
dynamic jsify(Object object) {
|
||||
if ((object is! Map) && (object is! Iterable)) {
|
||||
throw ArgumentError("object must be a Map or Iterable");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue