Artem S. Povalyukhin

Results 69 comments of Artem S. Povalyukhin

> you are suggesting to hide the returned value right and operate on njs_value_iterator_t? > So, making the real object may be avoided. Yes. To avoid useless https://tc39.es/ecma262/#sec-createiterresultobject when it...

just want to note, that we need an additional scope, if default parameters are present: ```js .editor // Entering editor mode (^D to finish, ^C to cancel) var x =...

@lexborisov @xeioex and some more tests: ```js >> var x = function(a = 1, b = 1, c = () => a + b) { let a = 2, b...

maybe unrelated: ```js $ build/njs -q >> var x = () => (x = a) => x; let a = 2; x()(); 2 // OK >> $ build/njs -q >>...

```js >> var x = async function(inner = () => Promise.reject('reject'), next = await inner()) {}; undefined // vs. > var x = async function(inner = () => Promise.reject('reject'), next...

> Unfortunately, in the current architecture, we cannot solve closures problem BTW, I didn't ever see that someone use that "feature" in the wild.

Also affected: ```js > var o = { [Symbol.iterator]: () => {}, method: () => {}, ['Yeah' + '!!!']() {} }; [o[Symbol.iterator].name, o.method.name, o['Yeah!!!'].name]; [ '[Symbol.iterator]', 'method', 'Yeah!!!' ] ```...

@hongzhidao Hi! > What about starting to implement iterator and generator? > If nobody is on it, I plan to do it. Welcome to your suggestions. Take a look at...

@xeioex I like a `NjsBlob` solution. Some thoughts: 1. `typeof r.requestBody == 'object'`. I think it is better to freeze that object, as well as it's prototype, so the things...

@xeioex > > r.requestBody + r.requestBody will be a UTF-8 string, so it's a breaking change. > > Yes, maybe implicit toString() is not a good idea. Looks so, the...