mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02:00
Catch exceptions thrown Object.defineProperty
Related issue:
- https://github.com/uBlockOrigin/uAssets/issues/9883
Related commit:
- a9e6f9c72c
This commit is contained in:
parent
79a2678f00
commit
5dd91211ae
@ -932,6 +932,7 @@
|
|||||||
prevSetter = odesc.set;
|
prevSetter = odesc.set;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
Object.defineProperty(owner, prop, {
|
Object.defineProperty(owner, prop, {
|
||||||
configurable,
|
configurable,
|
||||||
get() {
|
get() {
|
||||||
@ -947,6 +948,8 @@
|
|||||||
handler.setter(a);
|
handler.setter(a);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch(ex) {
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const trapChain = function(owner, chain) {
|
const trapChain = function(owner, chain) {
|
||||||
const pos = chain.indexOf('.');
|
const pos = chain.indexOf('.');
|
||||||
|
Loading…
Reference in New Issue
Block a user