mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:26:24 +02:00
pastojs: less hints
git-svn-id: trunk@40209 -
This commit is contained in:
parent
c160d93750
commit
767938dac7
@ -419,7 +419,7 @@ begin
|
|||||||
jstNull: Result:='null';
|
jstNull: Result:='null';
|
||||||
jstBoolean: Result:=BoolToStr(Element.AsBoolean,'true','false');
|
jstBoolean: Result:=BoolToStr(Element.AsBoolean,'true','false');
|
||||||
jstNumber: str(Element.AsNumber,Result);
|
jstNumber: str(Element.AsNumber,Result);
|
||||||
jstString: Result:=QuoteStr(Element.AsString{%H-},'''');
|
jstString: Result:=QuoteStr(String(Element.AsString),'''');
|
||||||
jstObject: Result:='{:OBJECT:}';
|
jstObject: Result:='{:OBJECT:}';
|
||||||
jstReference: Result:='{:REFERENCE:}';
|
jstReference: Result:='{:REFERENCE:}';
|
||||||
JSTCompletion: Result:='{:COMPLETION:}';
|
JSTCompletion: Result:='{:COMPLETION:}';
|
||||||
@ -924,7 +924,9 @@ procedure TPas2jsLogger.LogExceptionBackTrace(E: Exception);
|
|||||||
begin
|
begin
|
||||||
{$IFDEF NodeJS}
|
{$IFDEF NodeJS}
|
||||||
if (E<>nil) and (E.NodeJSError<>nil) then
|
if (E<>nil) and (E.NodeJSError<>nil) then
|
||||||
|
{AllowWriteln}
|
||||||
writeln(E.NodeJSError.Stack);
|
writeln(E.NodeJSError.Stack);
|
||||||
|
{AllowWriteln-}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
@ -940,6 +942,7 @@ begin
|
|||||||
Log(mtDebug,BackTraceStrFunc(lErrorAddr));
|
Log(mtDebug,BackTraceStrFunc(lErrorAddr));
|
||||||
for FrameNumber := 0 to FrameCount-1 do
|
for FrameNumber := 0 to FrameCount-1 do
|
||||||
Log(mtDebug,BackTraceStrFunc(Frames[FrameNumber]));
|
Log(mtDebug,BackTraceStrFunc(Frames[FrameNumber]));
|
||||||
|
if E=nil then ;
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user