Closed emrahkucukali closed 9 months ago
Just use them. For example in ChakraCoreHostSample
:
procedure Main;
var
DataModule: TDataModuleMain;
Result: JsValueRef;
begin
ShowInfo;
DataModule := TDataModuleMain.Create(nil);
try
// DataModule.Execute(ParamStrings);
Result := DataModule.Context.RunScript('Math.round(Math.PI)', '');
WriteLn(JsStringToUnicodeString(Result));
finally
DataModule.Free;
end;
end;
Hi, how to use basic javascript units like Math?