QuickJS-Pascal
QuickJS-Pascal copied to clipboard
Cannot compile on Delphi 10.3
If I try to compile the demo on Delphi 10.3 I get this error: "[dcc32 Error] quickjs.pas(1467): E2029 Declaration expected but string constant found"
Thanks for the report.
Yes i forget to test the last update with Delphi.
please use this fix
{$IFDEF FPC}
function c_udivti3(num,den:uint64):uint64; cdecl; public alias: {$ifdef darwin}'___udivti3'{$else} '__udivdi3'{$endif};
begin
result:=num div den;
end;
{$ENDIF}
till i fix it because i've to update other stuff related to the Delphi demo because it's outdated .
Thanks. It fix the bug but I cannot compile the demo on Delphi.
I have compile the demo on Delphi but I cannot understand how use it. I get always error when try run a javascript
I have the same question haha
I recommend you to check the mormot2 QuickJS implementation it's built on top of this project but with more useful APIs. https://github.com/synopse/mORMot2/blob/master/src/lib/mormot.lib.quickjs.pas