aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-24 18:28:03 +0800
committerGitHub <noreply@github.com>2017-04-24 18:28:03 +0800
commita9f4215720ad7185e9a109ea1cf317d539c1b8e5 (patch)
treea05781e58713c07e4f54012b49254db2c171385c /libsolidity/interface
parentaa441668db9ea5ec68b8988209c3ed7c82659876 (diff)
parentc82a203206ff36be2aea0c1d1ef976ddf085d65a (diff)
downloaddexon-solidity-a9f4215720ad7185e9a109ea1cf317d539c1b8e5.tar.gz
dexon-solidity-a9f4215720ad7185e9a109ea1cf317d539c1b8e5.tar.zst
dexon-solidity-a9f4215720ad7185e9a109ea1cf317d539c1b8e5.zip
Merge pull request #2155 from ethereum/guard-readcallback
Guard ReadFileCallback exceptions
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/CompilerStack.h3
-rw-r--r--libsolidity/interface/StandardCompiler.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index a34a34bb..d46c99be 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -79,7 +79,8 @@ class CompilerStack: boost::noncopyable
{
public:
/// Creates a new compiler stack.
- /// @param _readFile callback to used to read files for import statements. Should return
+ /// @param _readFile callback to used to read files for import statements. Must return
+ /// and must not emit exceptions.
explicit CompilerStack(ReadFile::Callback const& _readFile = ReadFile::Callback());
/// Sets path remappings in the format "context:prefix=target"
diff --git a/libsolidity/interface/StandardCompiler.h b/libsolidity/interface/StandardCompiler.h
index 0b714834..dfaf88cd 100644
--- a/libsolidity/interface/StandardCompiler.h
+++ b/libsolidity/interface/StandardCompiler.h
@@ -38,7 +38,8 @@ class StandardCompiler: boost::noncopyable
{
public:
/// Creates a new StandardCompiler.
- /// @param _readFile callback to used to read files for import statements. Should return
+ /// @param _readFile callback to used to read files for import statements. Must return
+ /// and must not emit exceptions.
StandardCompiler(ReadFile::Callback const& _readFile = ReadFile::Callback())
: m_compilerStack(_readFile), m_readFile(_readFile)
{