Skip to content

Commit

Permalink
fix(os): undefined syscall.Getrusage on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
azamaulanaaa committed Mar 12, 2022
1 parent 9ab7793 commit 576370c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion os_windows.go → os_non_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package lua

func clock(l *State) int {
Errorf(l, "os.clock not yet supported on Windows")
Errorf(l, "os.clock not yet supported")
panic("unreachable")
}
2 changes: 1 addition & 1 deletion unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!wasm

package lua

Expand Down

0 comments on commit 576370c

Please sign in to comment.