summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-11 16:49:36 +0530
committerNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-11 16:58:36 +0530
commit685a5544c4f319667c811b04128dc3f8f33a4230 (patch)
tree5a34c565188641b2c719cf6fa0f081497f3732e8 /compiler
parent03c4231951c1944a33a4b56823f65fe877e5ccb3 (diff)
downloadNim-685a5544c4f319667c811b04128dc3f8f33a4230.tar.gz
tyProc does not require copying in JS codegen
Diffstat (limited to 'compiler')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index a9813f5c5..4d22c4224 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -945,7 +945,7 @@ proc needsNoCopy(p: PProc; y: PNode): bool =
   else:
     return (mapType(y.typ) != etyBaseIndex and
             (skipTypes(y.typ, abstractInst).kind in
-             {tyRef, tyPtr, tyLent, tyVar, tyCString} + IntegralTypes))
+             {tyRef, tyPtr, tyLent, tyVar, tyCString, tyProc} + IntegralTypes))
   return true
 
 proc genAsgnAux(p: PProc, x, y: PNode, noCopyNeeded: bool) =