1) source maps
should generate correct mappings:
TypeError: smc.originalPositionFor is not a function
at check (...path...\lib\js\recast\test\mapping.js:59:34)
at Context.<anonymous> (...path...\lib\js\recast\test\mapping.js:80:9)
at callFn (...path...\lib\js\recast\node_modules\mocha\lib\runnable.js:360:21)
at Test.Runnable.run (...path...\lib\js\recast\node_modules\mocha\lib\runnable.js:352:7)
at Runner.runTest (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:442:10)
at ...path...\lib\js\recast\node_modules\mocha\lib\runner.js:560:12
at next (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:356:14)
at ...path...\lib\js\recast\node_modules\mocha\lib\runner.js:366:7
at next (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:290:14)
at Immediate.<anonymous> (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:334:5)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
2) source maps
should compose with inputSourceMap:
TypeError: smcLatter.eachMapping is not a function
at Object.util.composeSourceMaps (...path...\lib\js\recast\lib\util.js:56:13)
at Printer.print (...path...\lib\js\recast\lib\printer.js:173:18)
at Context.<anonymous> (...path...\lib\js\recast\test\mapping.js:141:12)
at callFn (...path...\lib\js\recast\node_modules\mocha\lib\runnable.js:360:21)
at Test.Runnable.run (...path...\lib\js\recast\node_modules\mocha\lib\runnable.js:352:7)
at Runner.runTest (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:442:10)
at ...path...\lib\js\recast\node_modules\mocha\lib\runner.js:560:12
at next (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:356:14)
at ...path...\lib\js\recast\node_modules\mocha\lib\runner.js:366:7
at next (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:290:14)
at Immediate.<anonymous> (...path...\lib\js\recast\node_modules\mocha\lib\runner.js:334:5)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
Error message:
How to reproduce
fetch https://github.com/GerHobbelt/recast
in that repository's directory, run these commands:
npm inpm test--> SUCCESSnow update package.json file: source-map from "0.6.1" to "0.7.0" (or do this using a tool such as this command line:
ncu -a --packageFile=package.jsonrm package-lock.jsonrm -rf node_modules/source-map/npm inpm test--> FAIL (with error report shown above)See also: GerHobbelt/recast@ff1a45b