mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
fix void usage in dart2js
This is to more incrementally land https://dart-review.googlesource.com/c/sdk/+/35805 This code uses void where it will no longer be allowed. Change-Id: Id7627f78f86293df0b9386210415c88bf3329ce4 Reviewed-on: https://dart-review.googlesource.com/36801 Reviewed-by: Stephen Adams <sra@google.com> Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
This commit is contained in:
parent
c2d24d59e1
commit
45c4e3e79b
1 changed files with 4 additions and 2 deletions
|
@ -1295,7 +1295,8 @@ class LiteralInt extends Literal<int> {
|
|||
}
|
||||
return int.parse(valueToken.lexeme);
|
||||
} on FormatException catch (ex) {
|
||||
throw handler(token, ex);
|
||||
handler(token, ex);
|
||||
throw new ArgumentError("handler didn't throw; aborting");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1318,7 +1319,8 @@ class LiteralDouble extends Literal<double> {
|
|||
}
|
||||
return double.parse(valueToken.lexeme);
|
||||
} on FormatException catch (ex) {
|
||||
throw handler(token, ex);
|
||||
handler(token, ex);
|
||||
throw new ArgumentError("handler didn't throw; aborting");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue