Skip to content

Swiffy runtime causes issues with Vue's internals #9737

Discussion options

You must be logged in to vote

I poked around a bit in the minified source of swiffy. It seems that it overrrides the toString() method of all global constructors like String.prototype.toString, and I assume this method now returns something that breaks our getTypeimplementation here:

const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/)

What does this mean for you?

  1. This is not breaking your app. prop validation warning are meant as a hint during development and are removed in production. So your app will work fine.
  2. You likely won't be able to get rid of these warnings in production without patching either swiffy…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexthunder3
Comment options

Answer selected by alexthunder3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants