diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-04 10:13:59 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:13 -0500 |
commit | 20799ce18c18ff1ad3125ad4e8a7a679b57a858f (patch) | |
tree | 8f48322078c59d39805ce55cc9911feeea92f1f3 /dom/bindings | |
parent | 08d22f03eae6038f392a99b14dcfd2e78cca2a04 (diff) | |
download | uxp-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.tar.gz |
Bug 1309147 - Part 2: Add the name of 'this' value's JSObject* for codegen to generate CEReaction code.
Tag UXP Issue #1344
Diffstat (limited to 'dom/bindings')
-rw-r--r-- | dom/bindings/Codegen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index 676d917939..6fd15ac90c 100644 --- a/dom/bindings/Codegen.py +++ b/dom/bindings/Codegen.py @@ -7473,7 +7473,7 @@ class CGPerSignatureCall(CGThing): def __init__(self, returnType, arguments, nativeMethodName, static, descriptor, idlNode, argConversionStartsAt=0, getter=False, setter=False, isConstructor=False, useCounterName=None, - resultVar=None): + resultVar=None, objectName="obj"): assert idlNode.isMethod() == (not getter and not setter) assert idlNode.isAttr() == (getter or setter) # Constructors are always static @@ -11069,7 +11069,8 @@ class CGProxySpecialOperation(CGPerSignatureCall): # CGPerSignatureCall won't do any argument conversion of its own. CGPerSignatureCall.__init__(self, returnType, arguments, nativeName, False, descriptor, operation, - len(arguments), resultVar=resultVar) + len(arguments), resultVar=resultVar, + objectName="proxy") if operation.isSetter() or operation.isCreator(): # arguments[0] is the index or name of the item that we're setting. |