mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 22:37:29 +09:00
Add ConvertJSValueTo*String functions that just take a value and hand out a string, without extra complications
This commit is contained in:
parent
6196fdda47
commit
e234612456
3 changed files with 34 additions and 8 deletions
|
|
@ -5560,7 +5560,7 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
|
|||
def getConversionCode(varName):
|
||||
normalizeCode = ""
|
||||
if type.isUSVString():
|
||||
normalizeCode = "NormalizeUSVString(cx, %s);\n" % varName
|
||||
normalizeCode = "NormalizeUSVString(%s);\n" % varName
|
||||
|
||||
conversionCode = fill("""
|
||||
if (!ConvertJSValueToString(cx, $${val}, ${nullBehavior}, ${undefinedBehavior}, ${varName})) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue