about summary refs log tree commit diff stats
path: root/doc/hacking.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-09 00:29:31 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-09 00:29:31 +0200
commitb6b998bf608f2f82d5b639455b2fd6224b0919e2 (patch)
tree8dd1e2869b64ac584700b6de034db5c667200954 /doc/hacking.md
parent4c64687290c908cd791a058dede9bd4f2a1c7757 (diff)
downloadchawan-b6b998bf608f2f82d5b639455b2fd6224b0919e2.tar.gz
Update monoucha
Diffstat (limited to 'doc/hacking.md')
-rw-r--r--doc/hacking.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/hacking.md b/doc/hacking.md
index 665a70ef..99404064 100644
--- a/doc/hacking.md
+++ b/doc/hacking.md
@@ -95,7 +95,8 @@ either make them `ref`, or use manual RVO (return bool, set var param).
 #### "result" variable
 
 The implicit "result" variable is great until you need to change the
-procedure signature or manually inline a proc. Avoid it when possible.
+procedure signature or manually inline a proc. Avoid it when possible,
+except in short accumulator-style procedures.
 
 #### Implicit initialization
 
@@ -133,7 +134,7 @@ Similarly, `varargs[string]` works, but is less efficient than
 `varargs[JSValue]`. (The former is first converted into a seq, while the
 latter is just a slice.)
 
-Use `?fromJS[T](ctx, val)` on JSValues manually instead.
+Use `?ctx.fromJS(ctx, val, res)` on JSValues manually instead.
 
 ### Fixing cyclic imports