aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-06-04 15:20:04 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-30 02:12:35 +0200
commit3d0b7fbc413f975d6302428947132366f0e339d5 (patch)
treee4afa2da4a23c7de6c91fc26486948a7e8e660cb /components/script/dom/bindings/codegen/CodegenRust.py
parent8732f6de690ae629366d44911c95dfadbb298792 (diff)
downloadservo-3d0b7fbc413f975d6302428947132366f0e339d5.tar.gz
servo-3d0b7fbc413f975d6302428947132366f0e339d5.zip
Implement EventListenerOptions for EventTarget
For now, only "capture" is supported.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 8880707f7d5..a82ad040041 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -6142,8 +6142,7 @@ class CGDictionary(CGThing):
" } else if val.get().is_object() {\n"
" val.get().to_object()\n"
" } else {\n"
- " throw_type_error(cx, \"Value not an object.\");\n"
- " return Err(());\n"
+ " return Ok(ConversionResult::Failure(\"Value is not an object.\".into()));\n"
" };\n"
" rooted!(in(cx) let object = object);\n"
"${preInitial}"