From 0a1e9f6ef0a1fecc37cd9df2b08233e5a2fc508f Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Fri, 14 Feb 2020 18:36:18 +0000 Subject: [PATCH] Undo breaking change in dart:js_util Change-Id: Idfb8d15310c01cfebe6ab9200dfec7c96fe3040d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135793 Reviewed-by: Vijay Menon Commit-Queue: Sigmund Cherem --- sdk_nnbd/lib/js_util/js_util.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_nnbd/lib/js_util/js_util.dart b/sdk_nnbd/lib/js_util/js_util.dart index 9ac9b587c4a..86fd582e758 100644 --- a/sdk_nnbd/lib/js_util/js_util.dart +++ b/sdk_nnbd/lib/js_util/js_util.dart @@ -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"); }