Replace a method call now deprecated in mozjs (#30307)

This commit is contained in:
Martin Robinson 2023-09-07 01:29:04 +02:00 committed by GitHub
parent 78afe76706
commit a1b83cac2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5657,7 +5657,7 @@ class CGDOMJSProxyHandler_defineProperty(CGAbstractExternMethod):
set += ("if id.is_string() || id.is_int() {\n" set += ("if id.is_string() || id.is_int() {\n"
+ CGIndenter(CGProxyNamedGetter(self.descriptor)).define() + CGIndenter(CGProxyNamedGetter(self.descriptor)).define()
+ " if result.is_some() {\n" + " if result.is_some() {\n"
" return (*opresult).failNoNamedSetter();\n" " return (*opresult).fail_no_named_setter();\n"
" }\n" " }\n"
"}\n") "}\n")
set += "return proxyhandler::define_property(*cx, %s);" % ", ".join(a.name for a in self.args[1:]) set += "return proxyhandler::define_property(*cx, %s);" % ", ".join(a.name for a in self.args[1:])