Generated `debug_sources` are node `Buffer`s and fail `pug_rethrow`
Author: ashi009Created Aug 18, 2020Updated Jan 11, 2026
LabelsbugGood First Issue
Pug Version: your version number here 3.0.0
Node Version: your version number here 14.7.0
When an included file is read, it's Buffer being stored in debug_sources:
Later, this value is passed to the generator and being serialized as-it in the final render function.
Which fails pug_rethrow's expectation, and makes it throw:
Source: pugjs/pug