mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 06:40:59 +00:00
!762 remove compileAndRunBundle
Merge pull request !762 from LiWenzhen/removeCompileBundle
This commit is contained in:
commit
2ccb6b0161
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user