diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-11 16:49:36 +0530 |
---|---|---|
committer | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-11 16:58:36 +0530 |
commit | 685a5544c4f319667c811b04128dc3f8f33a4230 (patch) | |
tree | 5a34c565188641b2c719cf6fa0f081497f3732e8 /compiler | |
parent | 03c4231951c1944a33a4b56823f65fe877e5ccb3 (diff) | |
download | Nim-685a5544c4f319667c811b04128dc3f8f33a4230.tar.gz |
tyProc does not require copying in JS codegen
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/jsgen.nim | 2 |
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) = |