diff --git a/src/servo/dom/bindings/codegen/CodegenRust.py b/src/servo/dom/bindings/codegen/CodegenRust.py index bd553f3e1be..9c0b0433d0d 100644 --- a/src/servo/dom/bindings/codegen/CodegenRust.py +++ b/src/servo/dom/bindings/codegen/CodegenRust.py @@ -1738,8 +1738,8 @@ class CGMemberJITInfo(CGThing): return "" def defineJitInfo(self, infoName, opName, infallible): - protoID = 0 # "prototypes::id::%s" % self.descriptor.name - depth = 0 # "PrototypeTraits<%s>::Depth" % protoID + protoID = "prototypes::id::%s as uint" % self.descriptor.name + depth = self.descriptor.interface.inheritanceDepth() failstr = "true" if infallible else "false" return ("\n" "const %s: JSJitInfo = JSJitInfo {\n"