Daniel Nixon

Results 92 comments of Daniel Nixon

``` > new Intl.Locale("asdf") Uncaught RangeError: Incorrect locale information provided ```

``` JSON.stringify({a: 1n}) Uncaught TypeError: Do not know how to serialize a BigInt ```

``` > JSON.parse(""); Uncaught SyntaxError: Unexpected end of JSON input ```

``` > const foo = new RegExp("[asdf"); Uncaught SyntaxError: Invalid regular expression: /[asdf/: Unterminated character class ``` although this one is covered by https://eslint.org/docs/latest/rules/no-invalid-regexp Although... that rule doesn't have access...

``` > escape('\ud') escape('\ud') Uncaught SyntaxError: Invalid Unicode escape sequence ```

Even with `noUncheckedIndexedAccess`, there are other reasons to prefer real `Map` types: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#objects_vs._maps

I've boiled down a reproducer from that `styled-components` example: ``` interface Foo { (b: Foo & { b: Foo }): Foo; } declare const a: Foo; const b = a...

I've published a "fix". In the latest release it takes ~20 seconds to lint that `styled-components` example on my machine, but that's better than stack overflow / never completing. I'll...

I don't feel so bad about stopping that recursion arbitrarily after watching Anders explain that it's what they do: https://www.youtube.com/watch?v=wpgKd-rwnMw&t=1714s