mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 21:35:32 +00:00
10 lines
300 B
Dart
10 lines
300 B
Dart
import 'dart:typed_data';
|
|
import 'package:dart_eval/dart_eval.dart';
|
|
import 'package:mangayomi/eval/dart/plugin.dart';
|
|
|
|
Runtime runtimeEval(Uint8List bytecode) {
|
|
final runtime = Runtime(bytecode.buffer.asByteData());
|
|
final plugin = MEvalPlugin();
|
|
runtime.addPlugin(plugin);
|
|
return runtime;
|
|
}
|