Closed arty-name closed 8 years ago
The fragile detection of RegExp instances fails when executed in Node.js 6.2.1 environment because condition.hasOwnProperty('source') is false there.
condition.hasOwnProperty('source')
$ node > require('gulp-match')({relative: 'path.coffee'}, /.js$/) true > /test/.hasOwnProperty('source') false
It was moved to the prototype, but I believe we patched that recently. Want to PR a failing test?
Oh, sorry, my fault, didn’t update to the most recent version. Indeed 1.0.2 does not have this issue. Thanks!
The fragile detection of RegExp instances fails when executed in Node.js 6.2.1 environment because
condition.hasOwnProperty('source')
is false there.