summaryrefslogtreecommitdiffstats
path: root/dom/bindings/Codegen.py
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2019-03-13 20:07:10 +0200
committerJustOff <Off.Just.Off@gmail.com>2019-03-13 20:07:10 +0200
commit8525a292b0806d258576c2cfc5363b2c44dcaf22 (patch)
treefdf2131fcacf7ab678ee111570690b3318bfe60b /dom/bindings/Codegen.py
parentb586a191ec085d2c6c5c4fdfb1b12102fb5de4c4 (diff)
downloadUXP-8525a292b0806d258576c2cfc5363b2c44dcaf22.tar
UXP-8525a292b0806d258576c2cfc5363b2c44dcaf22.tar.gz
UXP-8525a292b0806d258576c2cfc5363b2c44dcaf22.tar.lz
UXP-8525a292b0806d258576c2cfc5363b2c44dcaf22.tar.xz
UXP-8525a292b0806d258576c2cfc5363b2c44dcaf22.zip
Add ConvertJSValueTo*String functions that just take a value and hand out a string, without extra complications
Diffstat (limited to 'dom/bindings/Codegen.py')
-rw-r--r--dom/bindings/Codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index ff6fa0ea3..915d7d431 100644
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -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})) {