mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style(script): address test-tidy
errors
This commit is contained in:
parent
a6b2f75656
commit
d733abfca0
3 changed files with 6 additions and 2 deletions
|
@ -6001,7 +6001,7 @@ class CGDOMJSProxyHandler_set(CGAbstractExternMethod):
|
||||||
|
|
||||||
js::jsapi::SetPropertyIgnoringNamedGetter(
|
js::jsapi::SetPropertyIgnoringNamedGetter(
|
||||||
*cx, proxy, id, v, receiver, own_desc.handle().into(), opresult)
|
*cx, proxy, id, v, receiver, own_desc.handle().into(), opresult)
|
||||||
""") % { "maybeCrossOriginSet": maybeCrossOriginSet }
|
""") % {"maybeCrossOriginSet": maybeCrossOriginSet}
|
||||||
|
|
||||||
def definition_body(self):
|
def definition_body(self):
|
||||||
return CGGeneric(self.getBody())
|
return CGGeneric(self.getBody())
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
use js::{
|
use js::{
|
||||||
glue::{
|
glue::{
|
||||||
CreateRustJSPrincipals, DestroyRustJSPrincipals, GetRustJSPrincipalsPrivate,
|
CreateRustJSPrincipals, DestroyRustJSPrincipals, GetRustJSPrincipalsPrivate,
|
||||||
|
|
|
@ -351,7 +351,7 @@ pub unsafe fn maybe_cross_origin_get_prototype(
|
||||||
/// Implementation of `[[SetPrototypeOf]]` for [`History`] and [`WindowProxy`].
|
/// Implementation of `[[SetPrototypeOf]]` for [`History`] and [`WindowProxy`].
|
||||||
///
|
///
|
||||||
/// [`History`]: https://html.spec.whatwg.org/multipage/#location-setprototypeof
|
/// [`History`]: https://html.spec.whatwg.org/multipage/#location-setprototypeof
|
||||||
/// [`WindowProxy`]: https://html.spec.whatwg.org/multipage/window-object.html#windowproxy-setprototypeof
|
/// [`WindowProxy`]: https://html.spec.whatwg.org/multipage/#windowproxy-setprototypeof
|
||||||
pub unsafe extern "C" fn maybe_cross_origin_set_prototype_rawcx(
|
pub unsafe extern "C" fn maybe_cross_origin_set_prototype_rawcx(
|
||||||
cx: *mut JSContext,
|
cx: *mut JSContext,
|
||||||
proxy: RawHandleObject,
|
proxy: RawHandleObject,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue