mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 15:40:02 -04:00
add lint command, lint and lint:fix project
This commit is contained in:
parent
430c7ad6ec
commit
93b609932d
23 changed files with 36916 additions and 25 deletions
|
@ -11,10 +11,10 @@ onconnect = (e) => {
|
|||
port.onmessage = ({ data }) => {
|
||||
console.log("thread: received message", data);
|
||||
const [task, ...args] = data;
|
||||
let token = syncToken++;
|
||||
const token = syncToken++;
|
||||
|
||||
try {
|
||||
let res = tasks[task](...args);
|
||||
const res = tasks[task](...args);
|
||||
console.log("thread: task", task, "completed with token", token);
|
||||
port.postMessage({
|
||||
token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue