提交 9ecc54fb 编写于 作者: A Adam Barth

Don't crash on Dart compile errors

Instead, just unwind as usual.

Fixes #2890
上级 ded7d553
......@@ -25,14 +25,12 @@ void DartInvoke(Dart_Handle closure, std::initializer_list<Dart_Handle> args) {
Dart_Handle* argv = const_cast<Dart_Handle*>(args.begin());
Dart_Handle handle = Dart_InvokeClosure(closure, argc, argv);
LogIfError(handle);
CHECK(!Dart_IsCompilationError(handle));
}
void DartInvokeVoid(Dart_Handle closure) {
TRACE_EVENT0("flutter", "DartInvokeVoid");
Dart_Handle handle = Dart_InvokeClosure(closure, 0, nullptr);
LogIfError(handle);
CHECK(!Dart_IsCompilationError(handle));
}
} // namespace blink
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册