mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
ImageData: constructor can throw DOM exceptions
This commit is contained in:
@@ -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