diff options
author | hlaaftana <hlaaftana@users.noreply.github.com> | 2019-10-02 22:01:59 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-02 21:01:59 +0200 |
commit | ba4315636368e3059212eb13aec59bf19f69aefa (patch) | |
tree | cff724152789e0a79724e702e3191e6a1f053228 /compiler/jsgen.nim | |
parent | ad13e18c7cd008da418770b7f1b8eae696992ced (diff) | |
download | Nim-ba4315636368e3059212eb13aec59bf19f69aefa.tar.gz |
Sets need copying in JS (#11392)
* Sets need copying in JS * Fixes #11353 * Add test for #11353
Diffstat (limited to 'compiler/jsgen.nim')
-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 038412041..a19f35722 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -975,7 +975,7 @@ proc countJsParams(typ: PType): int = const nodeKindsNeedNoCopy = {nkCharLit..nkInt64Lit, nkStrLit..nkTripleStrLit, - nkFloatLit..nkFloat64Lit, nkCurly, nkPar, nkStringToCString, + nkFloatLit..nkFloat64Lit, nkPar, nkStringToCString, nkObjConstr, nkTupleConstr, nkBracket, nkCStringToString, nkCall, nkPrefix, nkPostfix, nkInfix, nkCommand, nkHiddenCallConv, nkCallStrLit} |