diff options
Diffstat (limited to 'src/runtime/os_js.go')
-rw-r--r-- | src/runtime/os_js.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/os_js.go b/src/runtime/os_js.go index 7fbeb5a832..7ae0e8d3ec 100644 --- a/src/runtime/os_js.go +++ b/src/runtime/os_js.go @@ -49,13 +49,13 @@ func osyield_no_g() { const _SIGSEGV = 0xb func sigpanic() { - g := getg() + gp := getg() if !canpanic() { throw("unexpected signal during runtime execution") } // js only invokes the exception handler for memory faults. - g.sig = _SIGSEGV + gp.sig = _SIGSEGV panicmem() } |