summaryrefslogtreecommitdiff
path: root/src/runtime/os_js.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/os_js.go')
-rw-r--r--src/runtime/os_js.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/os_js.go b/src/runtime/os_js.go
index 34cc0271f0..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()
- if !canpanic(g) {
+ 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()
}