flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
15
VISUALIZACION/node_modules/mongoose/scripts/tsc-diagnostics-check.js
generated
vendored
Executable file
15
VISUALIZACION/node_modules/mongoose/scripts/tsc-diagnostics-check.js
generated
vendored
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const stdin = fs.readFileSync(0).toString('utf8');
|
||||
const maxInstantiations = isNaN(process.argv[2]) ? 120000 : parseInt(process.argv[2], 10);
|
||||
|
||||
console.log(stdin);
|
||||
|
||||
const numInstantiations = parseInt(stdin.match(/Instantiations:\s+(\d+)/)[1], 10);
|
||||
if (numInstantiations > maxInstantiations) {
|
||||
throw new Error(`Instantiations ${numInstantiations} > max ${maxInstantiations}`);
|
||||
}
|
||||
|
||||
process.exit(0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue