mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:03:19 +00:00
93c2900477
Change-Id: I6e93972bf904cbf09316517798a43116ee7fa61a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141027 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Jonas Termansen <sortie@google.com>
32 lines
1.1 KiB
Dart
32 lines
1.1 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();
|
|
|
|
bool get enabled => false;
|
|
|
|
static Object bad(String message) => UnimplementedError(message);
|
|
|
|
Object parse(String string) => throw bad('parse');
|
|
String toStringMethod(Object value) => throw bad('toStringMethod');
|
|
|
|
Object fromInt(int i) => throw bad('fromInt');
|
|
|
|
Object get one => throw bad('one');
|
|
Object get eight => throw bad('eight');
|
|
|
|
int bitLength(Object value) => throw bad('bitLength');
|
|
bool isEven(Object value) => throw bad('isEven');
|
|
|
|
Object add(Object left, Object right) => throw bad('add');
|
|
Object shiftLeft(Object value, Object count) => throw bad('shiftLeft');
|
|
Object shiftRight(Object value, Object count) => throw bad('shiftRight');
|
|
Object subtract(Object left, Object right) => throw bad('subtract');
|
|
}
|