url-pattern
url-pattern copied to clipboard
when run into different context,this judge will be wrong.
A case:
<script>
let testVal = new window.inner.contentWindow.RegExp(/testReg/);
console.log(testVal instanceof RegExp);//false
</script>
<iframe id="inner"></iframe>