Commit Graph

1142 Commits

Author SHA1 Message Date
Michael Van Canneyt
e8d35f29fd * Define webassemblyexception 2024-12-02 21:25:50 +01:00
Michael Van Canneyt
3055de55dd * Send correct message in case of unhandled message 2024-11-27 11:49:56 +01:00
Michael Van Canneyt
7cd8b6e74d * Cosmetic change 2024-11-25 21:44:53 +01:00
Michael Van Canneyt
80293fc588 * Allow to override thread support for worker thread app 2024-11-25 21:30:07 +01:00
Michael Van Canneyt
8e48a6903c * Make HandleCustomCommand virtual protected... 2024-11-25 21:17:39 +01:00
Michael Van Canneyt
f238a62ba6 * Give application a chance to look at the message before handing it over to tthread support 2024-11-25 21:09:18 +01:00
Michael Van Canneyt
356f975902 * Correctly retrieve headers 2024-11-25 20:47:36 +01:00
Michael Van Canneyt
3b3ddc7fca * Allow to compile in mode nodejs (workers) 2024-11-08 16:14:35 +01:00
Michael Van Canneyt
bd36c15d6a * Allow specify worker 2024-11-08 16:14:17 +01:00
Michael Van Canneyt
b12abb26a6 * Publish Self_ 2024-11-08 09:18:51 +01:00
Michael Van Canneyt
5876e535a2 * Allow execution of functions in libraries through a JSON-RPC mechanism 2024-11-07 17:52:54 +01:00
Michael Van Canneyt
2d0fc5940a * Allow to compile for worker 2024-11-07 15:08:10 +01:00
Michael Van Canneyt
028405d67f * Add Host 2024-11-07 15:07:52 +01:00
Michael Van Canneyt
de31826647 * Refactor so we can start threaded wasm application in a webworker 2024-11-06 00:00:48 +01:00
Michael Van Canneyt
afb8872fcb * Remove some unused variables 2024-11-05 23:57:26 +01:00
Michael Van Canneyt
b3c3e36b75 * Execute command 2024-11-05 23:57:04 +01:00
Michael Van Canneyt
f98aa26b63 * BroadcastChannel 2024-11-05 23:55:55 +01:00
Michael Van Canneyt
9f2392d4fd * Fix threading, in accordance with new specs 2024-11-04 16:11:12 +01:00
Michael Van Canneyt
8ea570af56 * define TJSSharedArrayBuffer 2024-11-04 16:11:12 +01:00
Michael Van Canneyt
da93fd1eb0 * Write string into memory using approach that also works in threads 2024-11-04 16:11:12 +01:00
Ondrej Pokorny
6999d7ef68 SysUtils: NowUTC 2024-10-27 11:11:07 +01:00
mattias
eefc736a93 clean up 2024-10-15 11:22:14 +02:00
Michael Van Canneyt
1efaac6c8d * Allow to call DebugLiveObjects using object id -1 2024-09-20 10:23:31 +02:00
Michael Van Canneyt
53569c9ee9 * Timer implementation, javascript side 2024-09-18 17:41:44 +02:00
Michael Van Canneyt
193eeb8483 * DebugObject call 2024-09-18 17:41:00 +02:00
Michael Van Canneyt
9f374e3d23 * SetLastIndex 2024-09-17 10:44:47 +02:00
Michael Van Canneyt
d0b339ff89 * Allow to set size when 2024-09-17 10:44:47 +02:00
Henrique Gottardi Werlang
a88f985230 Create the TRttiDataMember to Delphi compatibility. 2024-09-16 14:25:11 -03:00
Michaël Van Canneyt
87631018bc * Add license header 2024-09-08 10:58:01 +02:00
Michaël Van Canneyt
9043affe45 * Fix names (see bug 40915 in FPC) 2024-09-08 10:48:15 +02:00
Michaël Van Canneyt
9a0555cacd * Prefix and add const 2024-09-08 10:31:39 +02:00
Michaël Van Canneyt
44a0bdb82e * needed here as well to compile host 2024-09-07 23:36:59 +02:00
Michaël Van Canneyt
cc6810e6e6 * Regexp support 2024-09-07 23:36:41 +02:00
Michael Van Canneyt
a7f2e4e743 * WebSocket close event 2024-09-07 17:38:39 +02:00
Michael Van Canneyt
77490ff695 * Headers default on headers object 2024-09-07 17:38:39 +02:00
Michael Van Canneyt
368b3ecf71 GetMemInfo calls 2024-09-07 17:38:39 +02:00
Michaël Van Canneyt
d83b17f4fd * Improvements to RegExp 2024-09-07 17:36:11 +02:00
Michaël Van Canneyt
b05c3cb55e * Websocket API 2024-09-07 17:35:46 +02:00
Michaël Van Canneyt
05d527bd9c * More examples, add examples to install 2024-08-30 23:16:43 +02:00
Michaël Van Canneyt
dc418b3fea * Add content to download anchor 2024-08-28 22:43:05 +02:00
Michaël Van Canneyt
8802cf610b * Some cleanup 2024-08-28 22:31:26 +02:00
Michaël Van Canneyt
4dda20fc64 * Remove some fetch duplicate overloads 2024-08-28 22:13:41 +02:00
Michaël Van Canneyt
bbd489c313 * ZenFS filesystem utils and demo 2024-08-28 22:13:41 +02:00
Michaël Van Canneyt
7d37ef3f4e * Add placeholder 2024-08-28 22:13:41 +02:00
Michael Van Canneyt
ed6fdbdfbc * No length for TJSWebAssemblyMemory. 2024-08-23 16:46:51 +02:00
Michael Van Canneyt
9361ce944f * GetStats and DumpLiveObjects calls 2024-08-23 16:45:40 +02:00
Michael Van Canneyt
8770967f35 * Console log changed to error in case of exception 2024-08-20 17:05:51 +02:00
Michael Van Canneyt
c697d58176 * Use text encoder (since we have webassembly support, we can assume textencoder support) 2024-08-19 15:10:00 +02:00
Michael Van Canneyt
767c226db7 * Correct write at 2024-08-19 15:09:20 +02:00
Michael Van Canneyt
c1a482a13e * No double seek, 2024-08-19 15:08:34 +02:00
Michael Van Canneyt
2d7c39d984 * Add resetTransform 2024-08-09 16:24:04 +02:00
Michael Van Canneyt
bdf72760eb * Nicer default images 2024-08-09 16:24:04 +02:00
Michael Van Canneyt
2db04c9e87 * Sizes of Floats 2024-08-09 16:24:04 +02:00
Michael Van Canneyt
af5b1434dc * SetMemoryFromArray 2024-08-09 16:24:04 +02:00
Henrique Gottardi Werlang
22504d1d60 Fix for virtual interface when the class inherited from this class as an interface type in the implementation. 2024-08-07 13:49:08 +00:00
Henrique Gottardi Werlang
596ed58822 Removed not used function QueryInterface function. 2024-08-07 13:47:14 +00:00
Henrique Gottardi Werlang
1c7beb5263 Created the "withResolvers" in the promise class. 2024-08-07 08:20:51 -03:00
Michael Van Canneyt
2bf664778e * Allow to inspect class-valued types 2024-08-06 14:26:18 +02:00
Michaël Van Canneyt
44f8c7e352 * Add event handler for exceptions 2024-08-06 09:09:41 +02:00
Michael Van Canneyt
01a49fbe68 * Some fixes and improvements: refresh tree 2024-08-01 18:10:24 +02:00
Michael Van Canneyt
09a24f2b17 * Improvements to object inspector 2024-07-29 17:17:18 +02:00
Michael Van Canneyt
63a8c9c137 * Do not try to instantiate webassembly if fetch did not result in status 200. 2024-07-29 15:29:33 +02:00
Michaël Van Canneyt
4eebcb7f5f * Demo for wasm debug object inspector 2024-07-29 09:01:29 +02:00
Michaël Van Canneyt
c5da62bd2e * Javascript side of webassembly object inspector 2024-07-27 15:44:43 +02:00
Michaël Van Canneyt
02455161f4 * Add replaceChildren. Fixes issue #39282 2024-07-24 14:11:16 +02:00
Henrique Gottardi Werlang
18a40f92ee When invoke an asynchronous method, the invoke function return the promise created. 2024-06-27 15:31:15 +00:00
Henrique Gottardi Werlang
0e5c9df70b Changed the interface to type info function don't raise compiler error. 2024-06-27 15:29:59 +00:00
Michaël Van Canneyt
14601cabf0 * Object ID can be 0 - we allow nil then. 2024-06-27 17:28:55 +02:00
Henrique Gottardi Werlang
7f49845a7b Parameter cast isn't necessary. 2024-06-27 15:24:38 +00:00
Michael Van Canneyt
511d4cd282 * Introduce InstanceBuffer 2024-06-26 14:18:30 +02:00
Michael Van Canneyt
86ac1eaf30 * Do not free temp objects in callback: webassembly code may save them 2024-06-19 15:44:20 +02:00
Michaël Van Canneyt
462adf9277 * CanvasGradient.AddColorStyp, canvasrenderingcontext.RoundRect 2024-06-17 14:55:19 +02:00
Michael Van Canneyt
1e06d5e814 * Wasi environment 2024-06-17 10:37:41 +02:00
Michael Van Canneyt
e92717f761 * Correct WasiExports after InstanceExports change 2024-06-14 17:45:13 +02:00
Michael Van Canneyt
fa69bdea7d * Introduce instanceexports at the extension level 2024-06-14 17:37:46 +02:00
Henrique Gottardi Werlang
dee43db2a7 IsEmpty functoin in the TList to Delphi compability. 2024-06-12 16:45:34 +00:00
Michaël Van Canneyt
ab7947fb1c * Resolve name clash between new XHR object properties and local args 2024-06-12 17:47:31 +02:00
Michaël Van Canneyt
35650070fc * Make JOBResultLast an alias instead of a numerical value 2024-06-12 17:40:53 +02:00
Michaël Van Canneyt
6530fde036 * Make methodcallback a named method, helps in browser debugger stack view 2024-06-12 17:40:15 +02:00
Henrique Gottardi Werlang
bc9da80549 Fix for invoking the constructor of the class using the RTTI. 2024-06-06 12:47:04 +00:00
Henrique Gottardi Werlang
32a78bc897 Changed invoke implementation to the range check error don't try to check the range of a parameter that is not an array, but one class. 2024-06-06 12:45:19 +00:00
Henrique Gottardi Werlang
af3397e42c Validating the interface type in the virtual interface class. 2024-06-06 12:43:21 +00:00
Henrique Gottardi Werlang
5f5e39c1f6 Fix for virtual interface when the class is inherited from another interface. 2024-06-06 12:43:21 +00:00
Michaël Van Canneyt
7c9edfcac7 * Preload files 2024-06-06 14:41:30 +02:00
Michaël Van Canneyt
b84e5c60bf * Make explicit what arguments are memory locations 2024-06-06 14:40:54 +02:00
Henrique Gottardi Werlang
41fc39d1e9 Fixed a queue rebase function that allowed you to unqueue an item that didn't exist. 2024-06-06 12:36:07 +00:00
Henrique Gottardi Werlang
8df83483e4 IsEmpty function for Queue, to Delphi compatibility. 2024-06-06 12:31:30 +00:00
Henrique Gottardi Werlang
40f5549e77 Mapped new events for the XML request. 2024-06-06 12:19:22 +00:00
Michael Van Canneyt
13742a5375 * Allow to access webassembly memory as Uint8Array 2024-06-05 10:57:24 +02:00
Michael Van Canneyt
b7553d1abf * Buffer is also descendent of TJSObject 2024-06-05 10:56:26 +02:00
Michael Van Canneyt
154565601d * Reget memory when memory is allocated 2024-06-04 15:13:34 +02:00
Michael Van Canneyt
017738ed33 * Allow to read array of byte 2024-05-24 17:28:42 +02:00
Michaël Van Canneyt
b030773e41 * Solution for FPC flush() mid-codepoint. 2024-05-19 16:33:58 +02:00
Michaël Van Canneyt
5d3abdcc5d * Add FindFirst/FindNext support 2024-05-19 15:37:31 +02:00
Michaël Van Canneyt
07f11729cc * Fix typo for namespaced use 2024-05-19 08:28:12 +02:00
Michael Van Canneyt
013f0bbdf5 * WASI Filesystem support, initial implementation 2024-05-18 23:23:45 +02:00
Michael Van Canneyt
a7db8e9f8b * Added BigInt 2024-05-18 23:22:42 +02:00
Michael Van Canneyt
4f1a37293d * Some fixes in stats and writesync 2024-05-18 23:22:26 +02:00
Michael Van Canneyt
bc2102a91d * Some corrections in logging statements 2024-05-16 17:47:10 +02:00
Michael Van Canneyt
ac1c2cd874 * Added ZenFS and demo 2024-05-16 17:47:10 +02:00