diff --git a/runtime/main/page/entry/init.ts b/runtime/main/page/entry/init.ts index 0a0b4ceabe42ef2a063b2ea772e247f976331956..2de3f7293a2c4c199e45ee744af31b594a236e22 100644 --- a/runtime/main/page/entry/init.ts +++ b/runtime/main/page/entry/init.ts @@ -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; } }