Closed
Description
import base64
static: echo encode("a")
$ choosenim stable
$ nim c -f example.nim
YQ==
$ nim js -f example.nim
YQ==
$ choosenim devel
$ nim c -f example.nim
Nim/lib/pure/base64.nim(170, 41) Error: cannot evaluate at compile time: cb64safe
$ nim js -f example.nim
Nim/lib/pure/base64.nim(170, 41) Error: cannot evaluate at compile time: cb64safe
$
Links
🙂
System Information
{
"CompileDate": "2020-03-21",
"CompileTime": "12:38:29",
"NimVersion": "1.1.1",
"hostCPU": "amd64",
"hostOS": "linux",
"cpuEndian": "littleEndian",
"getTempDir": "/tmp/",
"getHomeDir": "/home/juan/",
"getConfigDir": "/home/juan/.config/",
"now": "2020-03-22T06:31:37-03:00",
"getCurrentEncoding": "UTF-8",
"getFreeMem": 409600,
"getTotalMem": 528384,
"getOccupiedMem": 75040,
"countProcessors": 6,
"FileSystemCaseSensitive": true,
"arguments": "",
"nimcacheDir": "",
"command": "c",
"linkOptions": " -lm -lrt",
"compileOptions": " -w",
"ccompilerPath": "",
"cincludes": [],
"clibs": [],
"nimpretty": "0.2",
"nimble": "nimble v0.11.0 compiled at 2020-03-13 08:55:56\ngit hash: couldn't determine git hash",
"nimgrep": "1.5",
"nimsuggest": "Nim Compiler Version 1.1.1 [Linux: amd64]\nCompiled at 2020-03-13\nCopyright (c) 2006-2019 by Andreas Rumpf\n\nactive boot switches: -d:release -d:danger --gc:markAndSweep",
"choosenim": "choosenim v0.6.0 (2020-03-06 18:24:57) [linux/amd64]",
"gcc": "gcc (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130\nCopyright (C) 2019 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",
"clang": "clang version 9.0.1 \nTarget: x86_64-pc-linux-gnu\nThread model: posix\nInstalledDir: /usr/bin",
"node": "v13.9.0",
"git": "git version 2.25.1"
}