Skip to content

when run into different context,this judge will be wrong.#55

Open
wednesday wants to merge 1 commit intosnd:masterfrom
wednesday:patch-safer-judge
Open

when run into different context,this judge will be wrong.#55
wednesday wants to merge 1 commit intosnd:masterfrom
wednesday:patch-safer-judge

Conversation

@wednesday
Copy link

A case:

<script>
let testVal = new window.inner.contentWindow.RegExp(/testReg/);
console.log(testVal instanceof RegExp);//false
</script>

<iframe id="inner"></iframe>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant