And FPC for linux is what I'm looking forward.
]]>I have tried to compile Example 2 in Delphi XE3, but got AV.
The problem is related to
https://synopse.info/forum/viewtopic.php?id=1733
To make it work, following functions must be used instead of Properties:
SpiderMonkey 45:
JSRuntime
function GetPrivate: Pointer;
procedure SetPrivate(const Value: Pointer);
function GetOptions: PJSRuntimeOptions;
function GetGCParameter(key: JSGCParamKey): uint32;
procedure SetGCParameter(key: JSGCParamKey; const Value: uint32);
function GetErrorReporter: JSErrorReporter;
procedure SetErrorReporter(er: JSErrorReporter);
function GetInterruptCallback: JSInterruptCallback;
procedure SetInterruptCallback(callback: JSInterruptCallback);
JSRuntimeOptions
function getOptions(const Index: Integer): Boolean;
procedure setOptions(const Index: Integer; const Value: Boolean);
SpiderMonkey 52:
JSContext
function GetPrivate: Pointer; {$ifdef HASINLINE}inline;{$endif}
procedure SetPrivate(const Value: Pointer);
JSContextOptions
function getOptions(const Index: Integer): Boolean;
procedure setOptions(const Index: Integer; const Value: Boolean);
For some reason SM52 fRt.GCParameter[] works, in SM45 need fRt.SetGCParameter
]]>