mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +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){
|
||||
if (intf){
|
||||
var i = rtl.getIntfG(intf.$o,intftype.$guid);
|
||||
if (i!==null) return i;
|
||||
}
|
||||
if (!intf) return null;
|
||||
var i = rtl.getIntfG(intf.$o,intftype.$guid);
|
||||
if (i) return i;
|
||||
rtl.raiseEInvalidCast();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user