提交 cd30c9ff 编写于 作者: J Jason Simmons

Do not show an assertion failure if Dart_FinalizeLoading returns an error...

Do not show an assertion failure if Dart_FinalizeLoading returns an error while building a snapshot (#2584)

This might happen due to errors expected during development (e.g. a mistyped

Dart class name)
上级 94a4b96b
......@@ -89,7 +89,8 @@ int main(int argc, const char* argv[]) {
CHECK(args.size() == 1);
LoadScript(args[0]);
CHECK(!LogIfError(Dart_FinalizeLoading(true)));
if (LogIfError(Dart_FinalizeLoading(true)))
return 1;
CHECK(command_line.HasSwitch(switches::kSnapshot));
WriteSnapshot(command_line.GetSwitchValuePath(switches::kSnapshot));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册