mirror of
https://github.com/servo/servo.git
synced 2025-06-16 20:34:30 +00:00
Pass a JSContext to ToJSValConvertible::to_jsval.
This commit is contained in:
parent
52ab85c45d
commit
5f9e649491
2 changed files with 15 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue