estools / escodegen

ECMAScript code generator
BSD 2-Clause "Simplified" License
2.64k stars 334 forks source link

Failes on Line & Block comments #441

Open NoahCardoza opened 3 years ago

NoahCardoza commented 3 years ago
./escodegen/escodegen.js:2510
        result = this[stmt.type](stmt, flags);

When parsing code with /* Block */ or // Line comments, escodegen seems to fail not knowing how to convert them into code.

I'm assuming this isn't an oversight but how would I go about keeping comments intact?