mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Change some isString() checks in the WebIDL codegen to isDOMString() checks.
This commit is contained in:
parent
05150f82e1
commit
541d581c32
1 changed files with 2 additions and 2 deletions
|
@ -640,7 +640,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
|
|||
if type.isSpiderMonkeyInterface():
|
||||
raise TypeError("Can't handle SpiderMonkey interface arguments yet")
|
||||
|
||||
if type.isString():
|
||||
if type.isDOMString():
|
||||
assert not isEnforceRange and not isClamp
|
||||
|
||||
treatAs = {
|
||||
|
@ -991,7 +991,7 @@ def getRetvalDeclarationForType(returnType, descriptorProvider):
|
|||
if returnType.nullable():
|
||||
result = CGWrapper(result, pre="Option<", post=">")
|
||||
return result
|
||||
if returnType.isString():
|
||||
if returnType.isDOMString():
|
||||
result = CGGeneric("DOMString")
|
||||
if returnType.nullable():
|
||||
result = CGWrapper(result, pre="Option<", post=">")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue