Pass a JSContext to ToJSValConvertible::to_jsval.

This commit is contained in:
Ms2ger 2014-03-05 10:50:22 +01:00
parent 52ab85c45d
commit 5f9e649491
2 changed files with 15 additions and 15 deletions

View file

@ -1582,7 +1582,7 @@ if %(resultStr)s.is_null() {
if not type.isPrimitive():
raise TypeError("Need to learn to wrap %s" % type)
return (setValue("(%s).to_jsval()" % result), True)
return (setValue("(%s).to_jsval(cx)" % result), True)
def wrapForType(type, descriptorProvider, templateValues):