mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-04 10:24:56 -04:00
ImageData: constructor can throw DOM exceptions
This commit is contained in:
1 file changed
+1
-1
@@ -108,7 +108,7 @@ pub const JsApi = struct {
|
||||
pub var class_id: bridge.ClassId = undefined;
|
||||
};
|
||||
|
||||
pub const constructor = bridge.constructor(ImageData.constructor, .{});
|
||||
pub const constructor = bridge.constructor(ImageData.constructor, .{ .dom_exception = true });
|
||||
|
||||
pub const width = bridge.accessor(ImageData.getWidth, null, .{});
|
||||
pub const height = bridge.accessor(ImageData.getHeight, null, .{});
|
||||
|
||||
Reference in new issue
Block a user