Skip to content

Commit

Permalink
Fix issue of converting Dart array to JS array
Browse files Browse the repository at this point in the history
  • Loading branch information
baonhan authored Jun 22, 2019
1 parent 6960c90 commit 7ce40fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ce40fa

Please sign in to comment.