Implement CanvasRenderingContext2D.canvas.

Fix #3024