rtl: fixed SetMethodProp normal function

This commit is contained in:
mattias 2019-10-22 11:39:31 +00:00
parent c79684f8d9
commit 07c76c5111

View File

@ -1447,7 +1447,10 @@ begin
end
else if isString(TJSObject(Code)['fn']) then
// named callback, different scope
cb:=createCallbackStr(Value.Data,string(TJSObject(Code)['fn']));
cb:=createCallbackStr(Value.Data,string(TJSObject(Code)['fn']))
else
// normal function
cb:=createCallbackPtr(Value.Data,Code);
end
else
// not a valid value -> for compatibility set it anyway