提交 39a5ad55 编写于 作者: L liwenzhen 提交者: LiWenzhen

fixed e3accfcb from https://gitee.com/liwenzhen3/third_party_jsframework/pulls/762

remove new Function in compileAndRunBundle
Signed-off-by: Nliwenzhen <liwenzhen3@huawei.com>
Change-Id: I91995c9f7691ec64e6bfe29faf72f6913bd8c851
上级 f1016327
...@@ -141,8 +141,8 @@ export function compileBundle(functionCode: string, file: string, ...args: objec ...@@ -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 failed to run code on native, then run code on framework.
if (!compileBundleNative(funcKeys, funcValues, functionCode, file)) { if (!compileBundleNative(funcKeys, funcValues, functionCode, file)) {
const resolveFunction: Function = new Function(funcKeys.toString(), functionCode); Log.error(`Compile js bundle failed, typeof code is not 'function'`)
return resolveFunction(...funcValues); return;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册