From 7ce40fa07635bcc8cb12b50398ba81c093005fef Mon Sep 17 00:00:00 2001 From: Bao Nhan Date: Fri, 21 Jun 2019 18:27:17 -0700 Subject: [PATCH] Fix issue of converting Dart array to JS array Fixes #281 --- lib/src/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common.dart b/lib/src/common.dart index 1da1bcbb..a37eaf2f 100644 --- a/lib/src/common.dart +++ b/lib/src/common.dart @@ -61,7 +61,7 @@ dynamic jsify(dynamic obj) { return new JsObject.jsify(m); } else if (obj is Iterable) { // Do a deep convert. - return new JsArray.from(obj).map(jsify); + return new JsArray.from(obj.map(jsify)); } else { return obj; }