mirror of
https://github.com/servo/servo.git
synced 2025-06-14 19:34:29 +00:00
Allow passing options to FromJSValConvertible::from_jsval.
This commit is contained in:
parent
5f9e649491
commit
476699a114
2 changed files with 30 additions and 29 deletions
|
@ -1232,7 +1232,7 @@ for (uint32_t i = 0; i < length; ++i) {
|
|||
successVal = preSuccess + successVal + postSuccess
|
||||
#XXXjdm support conversionBehavior here
|
||||
template = (
|
||||
"match FromJSValConvertible::from_jsval(cx, ${val}) {\n"
|
||||
"match FromJSValConvertible::from_jsval(cx, ${val}, ()) {\n"
|
||||
" Ok(v) => ${declName} = %s,\n"
|
||||
" Err(_) => %s\n"
|
||||
"}" % (successVal, failureCode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue