249cb9c974
Change-Id: Ia68ec34588bfb7b83c6a40e21e0fd5b8a5c0a874 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149891 Reviewed-by: Jonas Termansen <sortie@google.com> Commit-Queue: Stephen Adams <sra@google.com>
50 lines
1.3 KiB
Dart
50 lines
1.3 KiB
Dart
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'native_version.dart';
|
|
|
|
const NativeBigIntMethods nativeBigInt = _DummyMethods();
|
|
|
|
class _DummyMethods implements NativeBigIntMethods {
|
|
const _DummyMethods();
|
|
|
|
@override
|
|
bool get enabled => false;
|
|
|
|
static Object bad(String message) => UnimplementedError(message);
|
|
|
|
@override
|
|
Object parse(String string) => throw bad('parse');
|
|
|
|
@override
|
|
String toStringMethod(Object value) => throw bad('toStringMethod');
|
|
|
|
@override
|
|
Object fromInt(int i) => throw bad('fromInt');
|
|
|
|
@override
|
|
Object get one => throw bad('one');
|
|
|
|
@override
|
|
Object get eight => throw bad('eight');
|
|
|
|
@override
|
|
int bitLength(Object value) => throw bad('bitLength');
|
|
|
|
@override
|
|
bool isEven(Object value) => throw bad('isEven');
|
|
|
|
@override
|
|
Object add(Object left, Object right) => throw bad('add');
|
|
|
|
@override
|
|
Object shiftLeft(Object value, Object count) => throw bad('shiftLeft');
|
|
|
|
@override
|
|
Object shiftRight(Object value, Object count) => throw bad('shiftRight');
|
|
|
|
@override
|
|
Object subtract(Object left, Object right) => throw bad('subtract');
|
|
}
|