File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,12 @@ function loadContent(content) {
164164 var Module = module . constructor ;
165165 var m = new Module ( ) ;
166166 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" ) ;
170173 return m . exports ;
171174}
172175
You can’t perform that action at this time.
0 commit comments