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:
Mike Fairhurst 2018-01-26 19:15:19 +00:00 committed by commit-bot@chromium.org
parent c2d24d59e1
commit 45c4e3e79b

View file

@ -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");
}
}