!787 remove function in compile bundle

Merge pull request !787 from LiWenzhen/cherry-pick-1675068425
This commit is contained in:
openharmony_ci
2023-01-30 13:10:40 +00:00
committed by Gitee
+2 -2
View File
@@ -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;
}
}