diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-04 15:20:04 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-30 02:12:35 +0200 |
commit | 3d0b7fbc413f975d6302428947132366f0e339d5 (patch) | |
tree | e4afa2da4a23c7de6c91fc26486948a7e8e660cb /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 8732f6de690ae629366d44911c95dfadbb298792 (diff) | |
download | servo-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.py | 3 |
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}" |