mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Merge pull request #2830 from Ms2ger/constructor-unused-variable
Remove the unused 'obj' local from the construct hook; r=Manishearth
This commit is contained in:
commit
46c906ccd6
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