update bin/6to5/file to new source-map api

This commit is contained in:
Sebastian McKenzie 2015-01-18 19:29:18 +11:00
parent dd256dc3f8
commit c6be5cccd7

View File

@ -28,7 +28,7 @@ module.exports = function (commander, filenames) {
map.setSourceContent(filename, result.actual);
consumer.eachMapping(function (mapping) {
map._mappings.push({
map._mappings.add({
generatedLine: mapping.generatedLine + offset,
generatedColumn: mapping.generatedColumn,
originalLine: mapping.originalLine,