aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/error.rs
diff options
context:
space:
mode:
authorGregory Terzian <2792687+gterzian@users.noreply.github.com>2024-06-18 00:44:07 +0800
committerGitHub <noreply@github.com>2024-06-17 16:44:07 +0000
commit3d78d60619cb1eda22f4473c91c45cc6a7907244 (patch)
treeda2072a41d0956187c55f0d456d8046d8d794114 /components/script/dom/bindings/error.rs
parent3c1c395dfc60ca202834f9c708fffda71606bf1a (diff)
downloadservo-3d78d60619cb1eda22f4473c91c45cc6a7907244.tar.gz
servo-3d78d60619cb1eda22f4473c91c45cc6a7907244.zip
implement basic infra for ResizeObserver (#31108)
Diffstat (limited to 'components/script/dom/bindings/error.rs')
-rw-r--r--components/script/dom/bindings/error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/bindings/error.rs b/components/script/dom/bindings/error.rs
index 39f2da7dc1c..9474a4004b4 100644
--- a/components/script/dom/bindings/error.rs
+++ b/components/script/dom/bindings/error.rs
@@ -166,6 +166,7 @@ pub fn throw_dom_exception(cx: SafeJSContext, global: &GlobalScope, result: Erro
}
/// A struct encapsulating information about a runtime script error.
+#[derive(Default)]
pub struct ErrorInfo {
/// The error message.
pub message: String,