File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,12 @@ function loadContent(content) {
164
164
var Module = module . constructor ;
165
165
var m = new Module ( ) ;
166
166
m . _compile ( content , "tmp.js" ) ;
167
- m . exports . ignore_order = content . indexOf ( "\n// ignore-order\n" ) !== - 1 ;
168
- m . exports . exact_check = content . indexOf ( "\n// exact-check\n" ) !== - 1 ;
169
- m . exports . should_fail = content . indexOf ( "\n// should-fail\n" ) !== - 1 ;
167
+ m . exports . ignore_order = content . indexOf ( "\n// ignore-order\n" ) !== - 1 ||
168
+ content . startsWith ( "// ignore-order\n" ) ;
169
+ m . exports . exact_check = content . indexOf ( "\n// exact-check\n" ) !== - 1 ||
170
+ content . startsWith ( "// exact-check\n" ) ;
171
+ m . exports . should_fail = content . indexOf ( "\n// should-fail\n" ) !== - 1 ||
172
+ content . startsWith ( "// should-fail\n" ) ;
170
173
return m . exports ;
171
174
}
172
175
You can’t perform that action at this time.
0 commit comments