We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
super.postMessage
1 parent 4e35e34 commit 11265a0Copy full SHA for 11265a0
packages/scramjet/packages/core/rewriter/js/src/visitor.rs
@@ -478,7 +478,7 @@ where
478
// you could break this with ["postMessage"] etc
479
// however this code only exists because of recaptcha whatever
480
// and it would slow down js execution a lot
481
- if s.property.name == "postMessage" {
+ if s.property.name == "postMessage" && !matches!(&s.object, Expression::Super(_)) {
482
// include the "postMessage" and the dot before it in the inner span
483
// if `postMessage?.` remove the dot and the question mark
484
let offset = if s.optional { 2 } else { 1 };
0 commit comments