File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -654,3 +654,11 @@ for (var version in versions) {
654
654
const newSolc = require ( '../wrapper.js' ) ( require ( `/tmp/${ version } .js` ) ) ;
655
655
runTests ( newSolc , version ) ;
656
656
}
657
+
658
+
659
+ // add tests:
660
+ // - multiple sources with very old version (error)
661
+ // - compiler warnings/errors
662
+ // - no bytecode output (gas estimation) from compiler
663
+
664
+
Original file line number Diff line number Diff line change @@ -155,8 +155,9 @@ function escapeString (text) {
155
155
. replace ( / \t / g, '\\t' ) ;
156
156
}
157
157
158
+ // 'asm' can be an object or a string
158
159
function formatAssemblyText ( asm , prefix , source ) {
159
- if ( typeof asm === typeof ' ' || asm === null || asm === undefined ) {
160
+ if ( typeof asm === 'string ' || asm === null || asm === undefined ) {
160
161
return prefix + ( asm || '' ) + '\n' ;
161
162
}
162
163
var text = prefix + '.code\n' ;
You can’t perform that action at this time.
0 commit comments