mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 22:09:32 +02:00
pastojs: fixed o as intftype, when o is nil
git-svn-id: trunk@48188 -
(cherry picked from commit 25fd38b2da
)
This commit is contained in:
parent
1d2ad03167
commit
8c961ad2ea
7
utils/pas2js/dist/rtl.js
vendored
7
utils/pas2js/dist/rtl.js
vendored
@ -707,10 +707,9 @@ var rtl = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
intfAsIntfT: function (intf,intftype){
|
intfAsIntfT: function (intf,intftype){
|
||||||
if (intf){
|
if (!intf) return null;
|
||||||
var i = rtl.getIntfG(intf.$o,intftype.$guid);
|
var i = rtl.getIntfG(intf.$o,intftype.$guid);
|
||||||
if (i!==null) return i;
|
if (i) return i;
|
||||||
}
|
|
||||||
rtl.raiseEInvalidCast();
|
rtl.raiseEInvalidCast();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user