update cmakelists

This commit is contained in:
ekibun
2020-12-28 19:34:29 +08:00
parent 348848837a
commit 75527772ce
2 changed files with 2 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ add_custom_command(
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
"${FLUTTER_LIBRARY}"

View File

@@ -253,7 +253,7 @@ class IsolateQjs {
'port': evaluatePort.sendPort,
});
var result = await evaluatePort.first;
if (result['data'] != null)
if (result['error'] == null)
return _decodeData(result['data'], sendPort);
else
throw result['error'];