未验证 提交 eecf4719 编写于 作者: O openharmony_ci 提交者: Gitee

!787 remove function in compile bundle

Merge pull request !787 from LiWenzhen/cherry-pick-1675068425
......@@ -141,8 +141,8 @@ export function compileBundle(functionCode: string, file: string, ...args: objec
// If failed to run code on native, then run code on framework.
if (!compileBundleNative(funcKeys, funcValues, functionCode, file)) {
const resolveFunction: Function = new Function(funcKeys.toString(), functionCode);
return resolveFunction(...funcValues);
Log.error(`Compile js bundle failed, typeof code is not 'function'`)
return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册