Closed alexlamsl closed 8 years ago
A tested (on node-chakracore) workaround which addresses this issue:
'use strict';
module.exports = function () {
return new Error().stack.split(/\n/).slice(1).map(function(line) {
var filename = line.match(/\((.*?)\:[0-9]+\:[0-9]+\)/)[1];
return {
getFileName: function() {
return filename;
}
};
});
};
Please don't open issues about node-chakra on people's projects. node-chakra should be V8 compatible. If it's not, it's up to the Chakra team to fix their compatibility layer.
This happens when I run
eslint sample.js
(.eslintrc.js
&sample.js
both exist)Reading the source code,
Error.prepareStackTrace
may be a V8-specific trick that won't work on ChakraCore.