mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-06 04:47:48 +02:00
* Patch from Thierry Gayet, caches is only available in web worker
This commit is contained in:
parent
1f050292f9
commit
fbad08559d
@ -8,6 +8,7 @@ unit JOB_Browser;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode objfpc}
|
||||
{$modeswitch externalclass}
|
||||
|
||||
interface
|
||||
|
||||
@ -114,7 +115,9 @@ begin
|
||||
RegisterGlobalObject(document,'document');
|
||||
RegisterGlobalObject(window,'window');
|
||||
RegisterGlobalObject(console,'console');
|
||||
{$IFDEF WORKER}
|
||||
RegisterGlobalObject(caches,'caches');
|
||||
{$ENDIF}
|
||||
RegisterGlobalObject(TJSObject,'Object');
|
||||
RegisterGlobalObject(TJSFunction,'Function');
|
||||
RegisterGlobalObject(TJSDate,'Date');
|
||||
|
Loading…
Reference in New Issue
Block a user