Skip to content

Commit 99e65a2

Browse files
committed
Fix cryptic error
1 parent a9f98e1 commit 99e65a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/window.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ global.HTMLCanvasElement = global.HTMLCanvasElement || HTMLCanvasElement;
1818
global.Canvas = global.Canvas || HTMLCanvasElement;
1919
global.CanvasRenderingContext2D =
2020
global.CanvasRenderingContext2D || CanvasRenderingContext2D;
21-
global.WebGLRenderingContext = global.WebGLRenderingContext || function() {};
21+
// This causes the cryptic error:
22+
// `Value is undefined, expected an Object`
23+
// global.WebGLRenderingContext = global.WebGLRenderingContext || function() {};
2224

2325
function checkEmitter() {
2426
if (

0 commit comments

Comments
 (0)