Results 277 comments of Sami Vaarala

Anyway, there are several alternative algorithms for parsing expressions to support e.g. destructuring. They just require considerable changes to the current algorithm, so it makes more sense to work in...

Arrow functions require an arbitrary amount of lookup however because the expression may be a comma expression (or arbitrary length) or an arrow function.

So in essence what that means is not a traditional lookahead but rather rewinding the token stream -- in effect you would still be "consuming" tokens and rewinding to reparse...

In practice it would more complicated than that: - The expressions may not generate DUK_OP_GETVAR if the parsed identifiers are register mapped, so they could be DUK_OP_LDREG instead. This would...

I'm merging the clang-format indent changes to master and to v2-maintenance. Once that's done, the easiest approach is probably to clang-format your changed files first, and then rebase against master/v2-maintenance....

Ok, clang-format changes are now in master and v2-maintenance. To reindent code: ``` $ make docker-image-clang-format $ make clang-format-source ```

Could you provide some more details, e.g.: - Where does the error `%%n used in a non-immutable format string: %s` come from? Duktape API, a module loader, or some webpack...

As Duktape doesn't implement all ES2015+ features it might just be that your transpilation target is too high?

The short answer is that in the current state: - You could try to use an existing release, and its default configuration in which case a configure step (and thus...