@nzakas It would work fine, it just has different performance properties than the one from escodegen. Your implementation performs `num` concatenations, whereas the implementation from escodegen performs `log(num)`. String concatenations in JS are pretty expensive, so the efficient implementation is used almost universally.