mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Remove the unused 'obj' local from the construct hook.
This commit is contained in:
parent
91de702edb
commit
a51ed7045c
1 changed files with 0 additions and 1 deletions
|
@ -3917,7 +3917,6 @@ class CGClassConstructHook(CGAbstractExternMethod):
|
|||
def definition_body(self):
|
||||
preamble = CGGeneric("""\
|
||||
let global = global_object_for_js_object(JS_CALLEE(cx, vp).to_object()).root();
|
||||
let obj = global.deref().reflector().get_jsobject();
|
||||
""")
|
||||
nativeName = MakeNativeName(self._ctor.identifier.name)
|
||||
callGenerator = CGMethodCall(["&global.root_ref()"], nativeName, True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue