23cbe39355
This copies the logic from dart2js and brings the two patches closer together. There is no need to pass the error handler to the helper function shared between `parse()` and `tryParse()`. Update JS foreign function types in parseDouble to match the NNBD version. Fixes: https://github.com/dart-lang/sdk/issues/41613 Change-Id: I85d39f8ba6bd76459cf6263099983b8b96d3a669 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144304 Reviewed-by: Stephen Adams <sra@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>