@@ -11,23 +11,21 @@ class _DummyMethods implements NativeBigIntMethods {
11
11
12
12
bool get enabled => false ;
13
13
14
- static Object bad (String message) {
15
- throw UnimplementedError (message);
16
- }
14
+ static Object bad (String message) => UnimplementedError (message);
17
15
18
- Object parse (String string) => bad ('parse' );
19
- String toStringMethod (Object value) => bad ('toStringMethod' );
16
+ Object parse (String string) => throw bad ('parse' );
17
+ String toStringMethod (Object value) => throw bad ('toStringMethod' );
20
18
21
- Object fromInt (int i) => bad ('fromInt' );
19
+ Object fromInt (int i) => throw bad ('fromInt' );
22
20
23
- Object get one => bad ('one' );
24
- Object get eight => bad ('eight' );
21
+ Object get one => throw bad ('one' );
22
+ Object get eight => throw bad ('eight' );
25
23
26
- int bitLength (Object value) => bad ('bitLength' );
27
- bool isEven (Object value) => bad ('isEven' );
24
+ int bitLength (Object value) => throw bad ('bitLength' );
25
+ bool isEven (Object value) => throw bad ('isEven' );
28
26
29
- Object add (Object left, Object right) => bad ('add' );
30
- Object shiftLeft (Object value, Object count) => bad ('shiftLeft' );
31
- Object shiftRight (Object value, Object count) => bad ('shiftRight' );
32
- Object subtract (Object left, Object right) => bad ('subtract' );
27
+ Object add (Object left, Object right) => throw bad ('add' );
28
+ Object shiftLeft (Object value, Object count) => throw bad ('shiftLeft' );
29
+ Object shiftRight (Object value, Object count) => throw bad ('shiftRight' );
30
+ Object subtract (Object left, Object right) => throw bad ('subtract' );
33
31
}
0 commit comments