Ainthe Kitchen

Results 30 comments of Ainthe Kitchen

Please fix this, it fails in manu other scenarios: echo 'const [, , , fieldName] = process.argv' | grasp -s 'program' Cannot read property 'type' of null

Acorn also emits null , see example: $ echo 'const [, , , fieldName] = process.argv' | acorn { "type": "Program", "start": 0, "end": 39, "body": [ { "type": "VariableDeclaration",...

Just a note: On the other hand, it seems that -o option works , because formatResult function does not work with node.range but works with node.loc. Please can you explain...

same problem here running on node.js codebase: $ grasp -e '__.pop' -r ../node/lib/ lib/domain.js:247: stack.pop(); lib/internal/assert.js:74: actualLines.pop(); lib/internal/assert.js:75: expectedLines.pop(); lib/internal/assert.js:176: actualLines.pop(); lib/internal/assert.js:241: res.pop(); lib/internal/freelist.js:13: this.list.pop() : Segmentation fault: 11

chriswatrous: try $ node --version v10.7.0 works for me

is this closed by PR ? why not closing the bug report ?

Christian: yeah docs are in very "strange" style. See grasp-samples and grasp-tools repo. It took me while do decode gkz thinking.

came up with this solution for now: //see: http://www.graspjs.com/docs/lib/ ``` /* // option1: use all from cli and override with your own var args = Object.assign(require('grasp/lib/options.js').parse(process.argv), { replaceFunc: replaceFunc });...

solved somehow: getting object and reconstructing from properties except deleted ones: ``` // sample: echo "var x={id:10,b:20,c:30}" | node _tools/delete-properties.js "b,id" // parse original args var args = require('grasp/lib/options.js').parse(process.argv); //...