Skip to content

Commit 987ecd8

Browse files
committed
Properly check for undefined callback in compileStandardWrapper
1 parent 46eebf3 commit 987ecd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function setupMethods (soljson) {
9999
});
100100
}
101101

102-
if (readCallback !== null && typeof readCallback !== 'function') {
102+
if (readCallback !== undefined && typeof readCallback !== 'function') {
103103
return formatFatalError('Invalid import callback supplied');
104104
}
105105

0 commit comments

Comments
 (0)