Implement EventListenerOptions for EventTarget

For now, only "capture" is supported.
This commit is contained in:
Guillaume Gomez 2016-06-04 15:20:04 +02:00 committed by Anthony Ramine
parent 8732f6de69
commit 3d0b7fbc41
6 changed files with 108 additions and 41 deletions

View file

@ -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}"