mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'origin/develop' into develop_060
This commit is contained in:
commit
071a52f0ff
@ -94,6 +94,9 @@ make -j 4
|
||||
|
||||
cd ..
|
||||
mkdir -p upload
|
||||
# Patch soljson.js to provide backwards-compatibility with older emscripten versions
|
||||
# TODO: remove in 0.6.0!
|
||||
echo -n ";/* backwards compatibility */ Module['Runtime'] = Module; Module['Pointer_stringify'] = Module['UTF8ToString'];" >> $BUILD_DIR/libsolc/soljson.js
|
||||
cp $BUILD_DIR/libsolc/soljson.js upload/
|
||||
cp $BUILD_DIR/libsolc/soljson.js ./
|
||||
|
||||
|
@ -186,7 +186,7 @@ bool EVMVersionRestrictedTestCase::validateSettings(langutil::EVMVersion _evmVer
|
||||
versionString = versionString.substr(versionBegin);
|
||||
std::optional<langutil::EVMVersion> version = langutil::EVMVersion::fromString(versionString);
|
||||
if (!version)
|
||||
throw runtime_error("Invalid EVM version: \"" + versionString + "\"");
|
||||
BOOST_THROW_EXCEPTION(runtime_error{"Invalid EVM version: \"" + versionString + "\""});
|
||||
|
||||
if (comparator == ">")
|
||||
return _evmVersion > version;
|
||||
@ -201,6 +201,5 @@ bool EVMVersionRestrictedTestCase::validateSettings(langutil::EVMVersion _evmVer
|
||||
else if (comparator == "!")
|
||||
return !(_evmVersion == version);
|
||||
else
|
||||
throw runtime_error("Invalid EVM comparator: \"" + comparator + "\"");
|
||||
return false; // not reached
|
||||
BOOST_THROW_EXCEPTION(runtime_error{"Invalid EVM comparator: \"" + comparator + "\""});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user