mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:17:07 +00:00
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:
parent
748bbb720a
commit
9781d3dc9f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue