Skip to content

Commit adcfc77

Browse files
nevkontakteflimzy
andcommitted
Apply suggestions from code review
See gopherjs#1111. Co-authored-by: Jonathan Hall <flimzy@flimzy.com>
1 parent 3dfe12d commit adcfc77

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/natives/src/syscall/syscall_js_wasm.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build js
2-
31
package syscall
42

53
import (
@@ -39,7 +37,7 @@ func unsetenv_c(k string) {
3937

4038
func setStat(st *Stat_t, jsSt js.Value) {
4139
// This method is an almost-exact copy of upstream, except for 4 places where
42-
// time stamps are obtained as floats in lieu of int64. Unstread wasm emulates
40+
// time stamps are obtained as floats in lieu of int64. Upstream wasm emulates
4341
// a 64-bit architecture and millisecond-based timestamps fit within an int
4442
// type. GopherJS is 32-bit and use of 32-bit ints causes timestamp truncation.
4543
// We get timestamps as float64 (which matches JS-native representation) and

doc/syscalls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
System calls are the bridge between your application and your operating system. They are used whenever you access something outside of your application's memory, for example when you write to the console, when you read or write files or when you access the network. In Go, system calls are mostly used by the `os` package, hence the name. When using GopherJS you need to consider if system calls are available or not.
44

5-
Starting with 1.18, GopherJS provides to the same [set of cross-platform](https://pkg.go.dev/syscall?GOOS=js) syscalls as standard Go WebAssembly, emulating them via JavaScript APIs available in the runtime (browser or Node.js).
5+
Starting with 1.18, GopherJS provides the same [set of cross-platform](https://pkg.go.dev/syscall?GOOS=js) syscalls as standard Go WebAssembly, emulating them via JavaScript APIs available in the runtime (browser or Node.js).
66

77
### Output redirection to console
88

0 commit comments

Comments
 (0)