mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 06:21:15 +02:00
* Check for nil
git-svn-id: trunk@27475 -
This commit is contained in:
parent
0c50662156
commit
e05b77e759
@ -154,6 +154,7 @@ implementation
|
||||
|
||||
Resourcestring
|
||||
SErrUnknownJSClass = 'Unknown javascript element class : %s';
|
||||
SErrNilNode = 'Nil node in Javascript';
|
||||
|
||||
{ TBufferWriter }
|
||||
|
||||
@ -1140,6 +1141,8 @@ begin
|
||||
WriteFunctionDeclarationStatement(TJSFunctionDeclarationStatement(el))
|
||||
else if (el is TJSSourceElements) then
|
||||
WriteSourceElements(TJSSourceElements(el))
|
||||
else if EL=Nil then
|
||||
Error(SErrNilNode)
|
||||
else
|
||||
Error(SErrUnknownJSClass,[El.ClassName]);
|
||||
// Write('/* '+EL.ClassName+' */');
|
||||
|
Loading…
Reference in New Issue
Block a user