summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 10:13:59 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:13 -0500
commit20799ce18c18ff1ad3125ad4e8a7a679b57a858f (patch)
tree8f48322078c59d39805ce55cc9911feeea92f1f3 /dom
parent08d22f03eae6038f392a99b14dcfd2e78cca2a04 (diff)
downloadUXP-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.tar
UXP-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.tar.gz
UXP-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.tar.lz
UXP-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.tar.xz
UXP-20799ce18c18ff1ad3125ad4e8a7a679b57a858f.zip
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')
-rw-r--r--dom/bindings/Codegen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index 676d91793..6fd15ac90 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.