mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Stop using RootedGuard's
DerefMut impl (#36158)
* Stop using RootedGuard's DerefMut impl Signed-off-by: Greg Morenz <greg-morenz@droid.cafe> * Update mozjs version Signed-off-by: Greg Morenz <greg-morenz@droid.cafe> * `self.bytes` should not be mutably borrowed over GC pause Signed-off-by: Greg Morenz <greg-morenz@droid.cafe> --------- Signed-off-by: Greg Morenz <greg-morenz@droid.cafe>
This commit is contained in:
parent
96277c5688
commit
c728f31a10
4 changed files with 20 additions and 19 deletions
|
@ -641,7 +641,7 @@ pub(crate) fn get_desired_proto(
|
|||
// We might still have a cross-compartment wrapper for a known DOM
|
||||
// constructor. CheckedUnwrapStatic is fine here, because we're looking for
|
||||
// DOM constructors and those can't be cross-origin objects.
|
||||
*new_target = CheckedUnwrapStatic(*new_target);
|
||||
new_target.set(CheckedUnwrapStatic(*new_target));
|
||||
if !new_target.is_null() && *new_target != *original_new_target {
|
||||
get_proto_id_for_new_target(new_target.handle())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue