QuickJS-Pascal icon indicating copy to clipboard operation
QuickJS-Pascal copied to clipboard

Cannot compile on Delphi 10.3

Open array81 opened this issue 4 years ago • 5 comments

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"

array81 avatar Jun 05 '20 21:06 array81

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 .

Coldzer0 avatar Jun 06 '20 00:06 Coldzer0

Thanks. It fix the bug but I cannot compile the demo on Delphi.

array81 avatar Jun 07 '20 12:06 array81

I have compile the demo on Delphi but I cannot understand how use it. I get always error when try run a javascript

array81 avatar Jun 11 '20 21:06 array81

I have the same question haha

BoscoBecker avatar Aug 18 '22 14:08 BoscoBecker

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

Coldzer0 avatar Aug 18 '22 23:08 Coldzer0