mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out revision c35458a437cc (bug 976305) for breaking DataStore tests. r=orange
This commit is contained in:
parent
048b93a1e5
commit
c2283f49a9
@ -5939,7 +5939,10 @@ class CGAbstractStaticBindingMethod(CGAbstractStaticMethod):
|
||||
|
||||
def definition_body(self):
|
||||
unwrap = CGGeneric("""JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
JS::Rooted<JSObject*> obj(cx, &args.callee());""")
|
||||
JS::Rooted<JSObject*> obj(cx, args.computeThis(cx).toObjectOrNull());
|
||||
if (!obj) {
|
||||
return false;
|
||||
}""")
|
||||
return CGList([ CGIndenter(unwrap),
|
||||
self.generate_code() ], "\n\n").define()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user