Skip to content

Commit 62cf071

Browse files
committed
Backport new callback API to 0.5 to compileStandardWrapper
1 parent 5de2854 commit 62cf071

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wrapper.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ function setupMethods (soljson) {
109109
});
110110
}
111111

112+
// Forward compatibility with 0.6.x
113+
if (typeof readCallback === 'object') {
114+
readCallback = readCallback.import;
115+
}
116+
112117
if (readCallback !== undefined && typeof readCallback !== 'function') {
113118
return formatFatalError('Invalid import callback supplied');
114119
}

0 commit comments

Comments
 (0)