porffor 0.55.0 → 0.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fails.cjs +10 -3
 - package/package.json +1 -1
 - package/runner/index.js +1 -1
 - package/.hermes.cjs +0 -4
 
    
        package/.fails.cjs
    CHANGED
    
    | 
         @@ -1,6 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            const all = require('./all.json').map(x => x.slice(21));
         
     | 
| 
       2 
2 
     | 
    
         
             
            const { passes } = require('./test262/results.json');
         
     | 
| 
       3 
3 
     | 
    
         
             
            const fails = all.filter(x => !passes.includes(x));
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            const  
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
            {
         
     | 
| 
      
 5 
     | 
    
         
            +
              const dirs = Object.groupBy(fails, x => x.split('/').slice(0, 3).join('/'));
         
     | 
| 
      
 6 
     | 
    
         
            +
              const top = Object.keys(dirs).sort((a, b) => dirs[b].length - dirs[a].length);
         
     | 
| 
      
 7 
     | 
    
         
            +
              console.log(top.slice(0, 40).map(x => `${x}: ${dirs[x].length} (${((dirs[x].length / all.length) * 100).toFixed(2)}%)`).join('\n'));
         
     | 
| 
      
 8 
     | 
    
         
            +
            }
         
     | 
| 
      
 9 
     | 
    
         
            +
            {
         
     | 
| 
      
 10 
     | 
    
         
            +
              const dirs = Object.groupBy(fails, x => x.split('/').slice(0, 4).join('/'));
         
     | 
| 
      
 11 
     | 
    
         
            +
              const top = Object.keys(dirs).sort((a, b) => dirs[b].length - dirs[a].length);
         
     | 
| 
      
 12 
     | 
    
         
            +
              console.log(top.slice(0, 40).map(x => `${x}: ${dirs[x].length} (${((dirs[x].length / all.length) * 100).toFixed(2)}%)`).join('\n'));
         
     | 
| 
      
 13 
     | 
    
         
            +
            }
         
     | 
    
        package/package.json
    CHANGED
    
    
    
        package/runner/index.js
    CHANGED
    
    
    
        package/.hermes.cjs
    DELETED
    
    | 
         @@ -1,4 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            const uniq = [...new Set(require('../hermes.json').pass.map(x => x.slice(5))).difference(new Set(require('./test262/results.json').passes))];
         
     | 
| 
       2 
     | 
    
         
            -
            console.log([...uniq.reduce((acc, x) => { let k = x.split('/').slice(0, -1).join('/'); return acc.set(k, (acc.get(k) || 0) + 1); }, new Map()).entries()].sort((a, b) => a[1] - b[1]).slice(-20).map(x => x[0] + ': ' + x[1]).join('\n'));
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            if (process.argv[2]) console.log(uniq.filter(x => x.startsWith(process.argv[2])).join('\n'));
         
     |