File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const Path = require('path');
66module . exports = findTest262Dir ;
77function findTest262Dir ( globber ) {
88 const set = globber . minimatch . set ;
9+ console . log ( set ) ;
910 let baseDir ;
1011 for ( let i = 0 ; i < set . length ; i ++ ) {
1112 let base = [ ] ;
@@ -29,6 +30,11 @@ function findTest262Dir(globber) {
2930}
3031
3132function findTest262Root ( path ) {
33+ const stat = fs . statSync ( path ) ;
34+ if ( stat . isFile ( ) ) {
35+ path = Path . dirname ( path ) ;
36+ }
37+
3238 const contents = fs . readdirSync ( path )
3339 if ( contents . indexOf ( 'README.md' ) > - 1
3440 && contents . indexOf ( 'test' ) > - 1
Original file line number Diff line number Diff line change 11{
22 "name" : " test262-harness" ,
33 "repository" : " bterlson/test262-harness" ,
4- "version" : " 2.0.1 " ,
4+ "version" : " 2.0.2 " ,
55 "description" : " Node-based harness for test262" ,
66 "main" : " index.js" ,
77 "bin" : {
You can’t perform that action at this time.
0 commit comments