Skip to content

Commit ed2a18b

Browse files
nevkontakteflimzy
andauthored
Apply suggestions from code review
See #1111. Co-authored-by: Jonathan Hall <flimzy@flimzy.com>
1 parent fb8ae00 commit ed2a18b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/natives/src/syscall/syscall_js_wasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func unsetenv_c(k string) {
3939

4040
func setStat(st *Stat_t, jsSt js.Value) {
4141
// 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
42+
// time stamps are obtained as floats in lieu of int64. Upstream wasm emulates
4343
// a 64-bit architecture and millisecond-based timestamps fit within an int
4444
// type. GopherJS is 32-bit and use of 32-bit ints causes timestamp truncation.
4545
// 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)