2d.gradient.object.type
window.CanvasGradient exists and has the right properties
Defined in "Web IDL" (draft)