runRaw method
求值 code、等待 Promise 并返回底层 Bridge 的原始字符串。
Implementation
Future<String> runRaw(
String code, {
/// 从任务入队开始计算的总时限,包含排队、执行和等待 Promise 的时间。
Duration? timeout,
/// 本次执行的源码名称,用于错误堆栈、诊断信息和 source map 匹配。
String name = '<run>',
Map<String, Object?> tempGlobals = const {},
}) {
_ensureOpen();
return _engine.runRaw(
code,
timeout: timeout,
name: name,
tempGlobals: tempGlobals,
);
}