mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Add DOMError check in DOMImplementation
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -22,8 +22,8 @@ pub const Document = struct {
|
||||
pub const prototype = *Node;
|
||||
pub const mem_guarantied = true;
|
||||
|
||||
pub fn constructor() *parser.Document {
|
||||
return parser.domImplementationCreateHTMLDocument(null);
|
||||
pub fn constructor() !*parser.Document {
|
||||
return try parser.domImplementationCreateHTMLDocument(null);
|
||||
}
|
||||
|
||||
// JS funcs
|
||||
|
||||
Reference in New Issue
Block a user