Skip to content

Commit 17c2ab3

Browse files
committed
Raise error if invalid import callback is supplied to compileStandardWrapper
1 parent 9fbe261 commit 17c2ab3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wrapper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ function setupMethods (soljson) {
9797
});
9898
}
9999

100+
if (readCallback !== null && typeof readCallback !== 'function') {
101+
return formatFatalError('Invalid import callback supplied');
102+
}
103+
100104
input = JSON.parse(input);
101105

102106
if (input['language'] !== 'Solidity') {

0 commit comments

Comments
 (0)