Damian Tarnawski
49da19e013
Replace Math.random with crypto.getRandomValues for _system_number
2023-10-27 12:06:35 +02:00
Damian Tarnawski
8b2f62000a
Use wasmMemoryInterface for rand_bytes
2023-10-27 00:50:29 +02:00
Damian Tarnawski
11a2b2a942
Add system_random and random_bytes for js target
2023-10-27 00:05:38 +02:00
Damian Tarnawski
058065ce75
Correct loadI64 and storeI64 methods in runtime.js
2023-10-22 18:54:52 +02:00
Damian Tarnawski
c19af95db0
Fix calling time.now() in wasm js runtime
2023-10-19 18:45:04 +02:00
gingerBill
2783461e69
Merge pull request #2847 from thetarnav/js-runtime-patch
...
Update wasm `runtime.js`
2023-10-14 19:58:28 +01:00
Rehkitzdev
1097192554
added webgl GetParameter
2023-10-08 04:02:55 +02:00
Damian Tarnawski
ab2907cd51
Correct stripNewline function
2023-10-06 20:11:25 +02:00
Damian Tarnawski
ea8d3d4531
Define stripNewline function
2023-10-06 20:06:43 +02:00
Damian Tarnawski
256e4a0081
Don't pass true for littleEndian where it's not needed.
2023-10-06 20:03:26 +02:00
Damian Tarnawski
721c9e2c97
Fix typo
2023-10-06 17:26:39 +02:00
Damian Tarnawski
42c7e39c99
Update wasm runtime.js
...
- polyfill `Math.ldexp` method
- pass Math mathods streight through to exports object
(they don't use `this`)
- Don't pass `"utf-8"` encodings to `TextEncoder` and `TextDecoder`
(encoder doesn't take params and decoder has utf-8 as default)
2023-10-06 17:18:31 +02:00
Caedo
b185d9e701
Remove pointer magic when creating strings
2023-08-16 20:33:17 +02:00
Caedo
1182f41f99
Fix issues with js events not being initialized properly
2023-08-15 14:56:04 +02:00
Rehkitzdev
d8752da7d5
added webgl bindFramebuffer
2023-06-02 22:19:32 +02:00
gingerBill
3b5998af12
Fix typo for pow in runtime.js
2022-09-08 14:48:37 +01:00
gingerBill
7420fbd95b
Add custom event handling to wasm
2022-07-19 16:16:51 +01:00
gingerBill
43b350c590
Add more procedures for window related positions
2022-05-21 21:31:05 +01:00
gingerBill
c2c66aad60
Add Context_Menu event kind; Fix event_prevent_default()
2022-05-21 17:29:19 +01:00
gingerBill
d7681d5b06
Add utilities for Rects
2022-05-21 17:24:03 +01:00
gingerBill
c902615192
Improve writeToConole logic for the console.log difference between stdout and stderr
2022-05-21 17:03:44 +01:00
gingerBill
1eef9552b4
Fix typo
2022-05-21 16:35:27 +01:00
gingerBill
577fa2d29b
Update time procedures for js targets
2022-05-21 16:35:06 +01:00
gingerBill
72fcf16a39
Rename to writeToConsole
2022-05-21 16:15:20 +01:00
gingerBill
b9d523e0b2
Add color when writing to stderr
2022-05-21 16:11:10 +01:00
gingerBill
f3d225ca4f
Improve addConsoleLine
2022-05-21 16:00:36 +01:00
gingerBill
e48f41165c
Begin work on Atomics for wasm32 (wait and notify intrinsics)
2022-05-21 12:58:48 +01:00
gingerBill
94fda3d48d
Rename to runWasm
2022-05-21 11:41:50 +01:00
gingerBill
c20b5cbd10
Change wasm/js/runtime.mjs to a normal .js file; Add interfaces and functions to a global odin variable
2022-05-21 11:39:35 +01:00
gingerBill
6f1cc3946b
Begin work on Event System for js_wasm32 target
2022-05-09 16:58:34 +01:00
gingerBill
80360f3f51
Add vendor packages for the js_wasm32 target
2021-11-09 18:26:42 +00:00