Bug 964892 - WebIDL 'assert' method should be implemented as '_assert_'. r=bz

This commit is contained in:
Andrea Marchesini 2014-01-29 08:16:57 -05:00
parent 98245088dc
commit bff4f8945f

View File

@ -6069,8 +6069,10 @@ class CppKeywords():
@staticmethod
def checkMethodName(name):
# Double '_' because 'assert' and '_assert' cannot be used in MS2013 compiler.
# Bug 964892 and bug 963560.
if name in CppKeywords.keywords:
name = '_' + name
name = '_' + name + '_'
return name
class CGStaticMethod(CGAbstractStaticBindingMethod):