mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Enable dictionaries in WebIDL sequences. Fixes #10282.
This commit is contained in:
parent
803f39df19
commit
042883eac2
2 changed files with 9 additions and 0 deletions
|
@ -5186,6 +5186,14 @@ class CGDictionary(CGThing):
|
|||
" }\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"impl FromJSValConvertible for ${selfName} {\n"
|
||||
" type Config = ();\n"
|
||||
" unsafe fn from_jsval(cx: *mut JSContext, value: HandleValue, _option: ())\n"
|
||||
" -> Result<${selfName}, ()> {\n"
|
||||
" ${selfName}::new(cx, value)\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"impl ToJSValConvertible for ${selfName} {\n"
|
||||
" unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue) {\n"
|
||||
" let obj = RootedObject::new(cx, JS_NewObject(cx, ptr::null()));\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue