projects
/
onyx-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce2c27
)
added time_now host function
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 22 Jul 2021 22:26:45 +0000
(17:26 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 22 Jul 2021 22:26:45 +0000
(17:26 -0500)
static/src/worker.js
patch
|
blob
|
history
diff --git
a/static/src/worker.js
b/static/src/worker.js
index e0cb557b90d5c78f12fef2b24dffa44ad9bbfccc..716eaff5abc4a2b3d255f4a5962eca025fe32bf2 100644
(file)
--- a/
static/src/worker.js
+++ b/
static/src/worker.js
@@
-8,6
+8,10
@@
let import_obj = {
self.postMessage({ type: 'print_str', data: str });
},
+ time_now() {
+ return Date.now();
+ },
+
exit(code) {
self.postMessage({ type: 'terminated' });
self.close();