[X2Go-Commits] [pale-moon] 95/294: Support string default values for unions containing USVString
git-admin at x2go.org
git-admin at x2go.org
Sat Apr 27 08:57:54 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.
commit acfc69ec7e3470f8682e655af289a254a1c01a2d
Author: JustOff <Off.Just.Off at gmail.com>
Date: Wed Mar 13 18:15:07 2019 +0200
Support string default values for unions containing USVString
---
dom/bindings/Codegen.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index cb93e48..5c4aa74 100644
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -4355,7 +4355,9 @@ def handleDefaultStringValue(defaultValue, method):
passing as the second argument of handleDefault; in particular it does not
end with a ';'
"""
- assert defaultValue.type.isDOMString() or defaultValue.type.isByteString()
+ assert (defaultValue.type.isDOMString() or
+ defaultValue.type.isUSVString() or
+ defaultValue.type.isByteString())
return ("static const %(char_t)s data[] = { %(data)s };\n"
"%(method)s(data, ArrayLength(data) - 1)") % {
'char_t': "char" if defaultValue.type.isByteString() else "char16_t",
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git
More information about the x2go-commits
mailing list