mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-29 10:31:00 +02:00
rtl: fixed SetMethodProp normal function
This commit is contained in:
parent
c79684f8d9
commit
07c76c5111
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user