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:
Sigmund Cherem 2020-02-14 18:36:18 +00:00 committed by commit-bot@chromium.org
parent 06f86bf58a
commit 0a1e9f6ef0

View file

@ -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");
}