!762 remove compileAndRunBundle

Merge pull request !762 from LiWenzhen/removeCompileBundle
This commit is contained in:
openharmony_ci 2022-11-23 02:40:31 +00:00 committed by Gitee
commit 2ccb6b0161
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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;
}
}