Fix minor bug with NNBD and Math.exp

This cl simply adds a missing nullcheck to Math.exp

Change-Id: I5a5a145b1c60e31d956891c530cba2bb9a718b4a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134761
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
This commit is contained in:
Joshua Litt 2020-02-06 20:41:07 +00:00 committed by commit-bot@chromium.org
parent 748bbb720a
commit 9781d3dc9f

View file

@ -51,7 +51,8 @@ double atan2(@nullCheck num a, @nullCheck num b) =>
JS<double>('!', r'Math.atan2(#, #)', a, b);
@patch
double exp(num x) => JS<double>('!', r'Math.exp(#)', x);
@notNull
double exp(@nullCheck num x) => JS<double>('!', r'Math.exp(#)', x);
@patch
@notNull