<div dir="ltr"><div><span style="color:rgb(0,0,0)">Pas2js / WEB Core Teams:<br></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><span style="color:rgb(0,0,0)">
</span><div><span style="color:rgb(0,0,0)">Presently, when compiling an application using the WEB Core v1.0.0.0 framework on Delphi Enterprise v10.2.3, WEB Core's included Pas2js compiler (v0.9.32+beta) raises the above error at line 252 of hotreloadclient.pas. <br></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">We can, however, get the unit to compile successfully by coercing the JSValue returned by TJSJSON.parse to TJSObject using toObject as follows... </span></div><div><span style="color:rgb(0,0,0)"><br></span></div><span style="color:rgb(0,0,0)">
<br>
Change:<br>
Data:=TJSJSON.parse(FLastReq.responseText); <br>
to:<br></span><div><span style="color:rgb(0,0,0)">
Data:=toObject( TJSJSON.parse(FLastReq.responseText) );</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Please confirm this is the appropriate fix.</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">Appreciatively,</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,128,0)"><span style="color:rgb(0,0,0)">J Ralston</span><br></span></div></div>