Đặc tả HTML5 không mô tả việc xóa thuộc tính getContext bởi script là hợp lệ.
Chúng ta có thể viết mã xóa thuộc tính getContext của HTMLCanvasElement sau đó gán nó thành undefined:
delete window.HTMLCanvasElement.prototype.getContext; _assertSame(window.HTMLCanvasElement.prototype.getContext, undefined, "window.HTMLCanvasElement.prototype.getContext", "undefined");