Skip to content

Commit

Permalink
civet 0.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Oct 22, 2024
1 parent cddc75d commit 502760f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion wasm/in.civet
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ createColorDiv := (color: string, i: number): HTMLDivElement =>
updateColorPicker := :void =>
elements.colorPicker.innerHTML = ''

colors.allColors().forEach (el, i) =>
for each el, i of colors.allColors()
elements.colorPicker.appendChild createColorDiv el, i

// @ts-expect-error Let me assign to this
Expand Down
2 changes: 1 addition & 1 deletion wasm/library.civet
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ mergeInto LibraryManager.library,
postMessage [3, [thread_number, {
'x': x,
'y': y,
'stack': Array::map.call HEAP32[stack >> 2...(stack >> 2) + stack_depth], (<<8>>8)
'stack': Array::map.call HEAP32[stack >> 2..<(stack >> 2) + stack_depth], (<<8>>8)
}]]
new Promise (@.'__trilangle_resolve'=)
9 changes: 5 additions & 4 deletions wasm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@danielx/civet": "~0.8.1",
"@danielx/civet": "~0.8.6",
"sass": "^1.79.0",
"terser": "^5.27.2"
},
Expand Down
4 changes: 2 additions & 2 deletions wasm/worker.civet
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ callInterpreter := (warnings: 0 | 1, disassemble: 0 | 1, expand: 0 | 1) => =>
['string', 'number', 'number', 'number']
[programText, warnings, disassemble, expand]
async: true
catch <? ExitStatus, null, undefined

Check failure on line 66 in wasm/worker.civet

View workflow job for this annotation

GitHub Actions / Lint with JS Tools

Empty block statement
catch e

Check failure on line 67 in wasm/worker.civet

View workflow job for this annotation

GitHub Actions / Lint with JS Tools

'e' is never reassigned. Use 'const' instead
if e? !<? ExitStatus
postMessage [2, e.toString()]
postMessage [2, e.toString()]
postMessage [0, null]

signals.set 'interpretProgram', callInterpreter 0, 0, 0
Expand Down

0 comments on commit 502760f

Please sign in to comment.