diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2018-01-25 06:26:40 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-25 04:26:40 +0100 |
commit | 0b9c1da1c088f38fb5770dbbb04b3eef35a0c624 (patch) | |
tree | 96b9493182efb0bd0b81154c52fc7ba90653967e /lib | |
parent | d5b493633282fb8ad0dc1bd79ac5b6873fa60144 (diff) | |
download | Nim-0b9c1da1c088f38fb5770dbbb04b3eef35a0c624.tar.gz |
Fixes #6741 (#7131)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/reprjs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/reprjs.nim b/lib/system/reprjs.nim index 658220c11..304ce4310 100644 --- a/lib/system/reprjs.nim +++ b/lib/system/reprjs.nim @@ -35,7 +35,7 @@ proc isUndefined[T](x: T): bool {.inline.} = {.emit: "`result` = `x` === undefin proc reprEnum(e: int, typ: PNimType): string {.compilerRtl.} = if not typ.node.sons[e].isUndefined: - result = $typ.node.sons[e].name + result = makeNimstrLit(typ.node.sons[e].name) else: result = $e & " (invalid data!)" |