facebookarchive/prepack

Support abstract functions with simple return types

開放

#2,514 建立於 2018年8月30日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (520 個分叉)batch import
enhancementhelp wantedpriority: low

倉庫指標

星標
 (14,268 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I need this to work:

let f = __abstract(":object", "(__f)");
global.result = f().p;

But it currently fails because the access to .p is not known to be safe. I'd like to model that the result of the call to f is a simple object where all such accesses should simply be allowed, maybe via __abstract(":object(simple)", ...).

貢獻者指南