Dmitry Panov

Results 70 comments of Dmitry Panov

Such option already exists: https://pkg.go.dev/github.com/dop251/goja#example-Runtime.SetParserOptions

There should be a way to specify parser options for a Registry. I would consider a PR. Also, I think missing source maps should not be a fatal error (I...

I don't see how it's possible without involving a 3rd party library, any suggestions?

I'd prefer the solution described in #426 as it's more generic and can be allied to 3rd party or built-in types.

I can see two issues: 1. Compatibility. This change would break existing code. 2. Performance. Due to the way typed arrays are implemented, you have to create an ArrayBuffer as...

Hi, > * Is there any plan to add `Symbol.asyncIterator` support? Yes, but not in the near future I'm afraid. > * Is there a way to implement this without...

I agree it would be good, unfortunately it's no trivial task, it would mean going through them one by one and manually translating each...

FWIW, these tests are part of goja tests, and most of them pass (the ones not explicitly excluded).

Repeated names in alternations is a relatively new feature (https://github.com/tc39/proposal-duplicate-named-capturing-groups) and is not implemented in this PR. If you know a way to do this, please let me know. As...

The problem is it works regardless of whether they are in different alternatives or not, i.e. `(?a)(?a)` works, but it shouldn't until the proposal I've mentioned is accepted. In the...