ikeyan

Results 26 comments of ikeyan

I found a repro without distribution: ```ts type C = [A] extends [{}] ? { a: string } : { a: number }; (): C => ({ a: 'x' });...

I can split upgrade([TS,ESLint]) part from this PR so please tell me.

@ImLunaHey No, the error message says `ctx` is null.

@ImLunaHey Here is the relevant method `HTMLCanvasElement.prototype.getContext` that always returns null. https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/nodes/html-canvas-element/HTMLCanvasElement.ts#L138C9-L143 This means `const ctx = document.createElement('canvas').getContext('2d');` always sets `ctx` to `null` and `ctx.webkitBackingStorePixelRatio` reduces to `null.webkitBackingStorePixelRatio`, which causes...