What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
Second param of Window.postMessage, whose name is "options" or "targetOrigin", is optional according to the MDN doc.But it's not really true.If I ignore the second param in chrome v69, there's an error:
"Failed to execute 'postMessage' on 'Window': 2 arguments required, but only 1 present."
Instead, I do same thing in chrome v123, everything is ok.
What did you expect to see?
Add a pitfall that tells people in which case the second param is not optional.
Do you have any supporting links, references, or citations?
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#options
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
Second param of Window.postMessage, whose name is "options" or "targetOrigin", is optional according to the MDN doc.But it's not really true.If I ignore the second param in chrome v69, there's an error: "Failed to execute 'postMessage' on 'Window': 2 arguments required, but only 1 present."
Instead, I do same thing in chrome v123, everything is ok.
What did you expect to see?
Add a pitfall that tells people in which case the second param is not optional.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response