You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Running the above produces the following exception:
TypeError: Invalid Version: 0.4.1-nightly.2016.09.09+commit.79867f49.Emscripten.clang
at new SemVer (/tmp/s/node_modules/semver/semver.js:323:11)
at compare (/tmp/s/node_modules/semver/semver.js:614:10)
at Function.gt (/tmp/s/node_modules/semver/semver.js:643:10)
at setupMethods (/tmp/s/node_modules/solc/wrapper.js:20:27)
at Object.<anonymous> (/tmp/s/node_modules/solc/index.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
The text was updated successfully, but these errors were encountered:
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.
axic
linked a pull request
Nov 10, 2021
that will
close
this issue
Originally reported in ethereum/solc-bin#21 (comment).
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:
The text was updated successfully, but these errors were encountered: