Clément P

Results 71 comments of Clément P

or simply `(NaN !== NaN)`

`\${` is also affected ## example ```js const html = /* html */ ` ` ``` ## actual render ![Screenshot_20240229_131642](https://github.com/0x00000001A/es6-string-html/assets/347244/69149bf5-6e97-47bf-a861-5bf40dd28712) ## expected render ![Screenshot_20240229_131642-exp](https://github.com/0x00000001A/es6-string-html/assets/347244/6f300e43-03bc-45a8-af30-d0f5037e3316)

The following are concerned: * [Element: innerHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML) * [Element: outerHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML) * [Element: insertAdjacentHTML()](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML) * [Element: setHTML()](https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTML)

https://github.com/advisories/GHSA-qghr-877h-f9jh

Almost all numerical operators are affected. Given that: ```ts let x: any = 0n ``` All these statements return the type `number`, [they should](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_negation#description) return the type `number | bigint`:...

Yes, I had closed this because I realized that the tests do not output javascript code but simply perform a `console.log` Parsing it works with basic types (Plain object, array...

a library like [devalue](https://github.com/Rich-Harris/devalue) could also be a solution.

that's what I assumed, but as the readme only gives examples with integers, it's not very obvious.

dot (`.`) is not mentioned [in spec](https://github.com/tc39/proposal-number-fromstring/blob/master/spec.html#L61): > 1. If _string_ represents a mathematical number value in radix-_R_ notation, using the characters 0-9 for digits with values 0 to 9,...

i suggest: `ctrl+alt+shift+q` but a configurable shortcut will be better.