Open cameel opened 3 years ago
It must added to translate.js
. Let me give this a look.
It seems based on semver rules a dot cannot be followed by a leading zero. As @cameel has observed.
By the way, I checked that nightly in Remix and it just fails silently - the compile button keeps spinning but on the console there is Uncaught TypeError: Invalid Version: 0.4.1-nightly.2016.09.09+commit.79867f49.Emscripten.clang
.
Originally reported in https://github.com/ethereum/solc-bin/pull/21#discussion_r746961386.
soljson-v0.4.1-nightly.2016.9.9+commit.79867f49.js
crashes solc-js because the version it reports apparently does not conform to semver. solc-js should be able to handle that more gracefully.This happens for
--version
and--bin
. Probably in other cases too.Repro
Running the above produces the following exception: