You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void render(html.CanvasRenderingContext2D context) {
num r = 255;
num g = 0;
num b = 0;
context.setFillColor(r, g, b);
context.fillRect(100, 100, 64, 64);
}
The call CanvasRenderingContext2DWrappingImplementation.setFillColor correctly determines that r is a number and that g and b are non-null. It then calls
This issue was originally filed by domi...@google.com
void render(html.CanvasRenderingContext2D context) {
num r = 255;
num g = 0;
num b = 0;
context.setFillColor(r, g, b);
context.fillRect(100, 100, 64, 64);
}
The call CanvasRenderingContext2DWrappingImplementation.setFillColor correctly determines that r is a number and that g and b are non-null. It then calls
this._ptr.setFillColor$4(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k);
which tries to unwrap r as a number, which fails with the exception:
Uncaught TypeError: Object 255 has no method 'get$_ptr'
LevelDom.unwrap
CanvasRenderingContext2DWrappingImplementation.setFillColor
The text was updated successfully, but these errors were encountered: