Reverted HTMLCanvasElement.getContext() no longer accepts non-object context attributes

Published: | Categories: Canvas & WebGL


As part of the standard compliant, the HTMLCanvasElement.getContext method now throws a TypeError if the second contextAttributes argument is not an Object, null nor undefined. See the MDN article for the possible attributes.

Update: This change has been reverted with Firefox 45 since Livecode Emscripten code was broken due to the invalid false argument.