| Index: frog/gen.dart
|
| diff --git a/frog/gen.dart b/frog/gen.dart
|
| index 56e2f87dcdec57104e6ecde2b1f72e462a4f967e..418cba321271f4b313a7620ae2b5ef8a5c7680da 100644
|
| --- a/frog/gen.dart
|
| +++ b/frog/gen.dart
|
| @@ -73,6 +73,14 @@ class WorldGenerator {
|
| world.numImplType.markUsed();
|
| world.stringImplType.markUsed();
|
|
|
| + if (corejs.useIndex || corejs.useSetIndex) {
|
| + if (!options.disableBoundsChecks) {
|
| + // These exceptions might be thrown by array bounds checks.
|
| + markTypeUsed(world.corelib.types['IndexOutOfRangeException']);
|
| + markTypeUsed(world.corelib.types['IllegalArgumentException']);
|
| + }
|
| + }
|
| +
|
| // Only include isolate-specific code if isolates are used.
|
| if (world.corelib.types['Isolate'].isUsed
|
| || world.coreimpl.types['ReceivePortImpl'].isUsed) {
|
|
|