Allow passing options to FromJSValConvertible::from_jsval.

This commit is contained in:
Ms2ger 2014-03-10 11:19:48 +01:00
parent 5f9e649491
commit 476699a114
2 changed files with 30 additions and 29 deletions

View file

@ -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))