-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Rollup Version
v4.20.0
Operating System (or Browser)
macOS / Chrome
Node Version (if applicable)
Does not apply
Link To Reproduction
Actual Behaviour
this[undefined] = this[undefined] || {};
this[undefined].valueOf = this[undefined].valueOf || {};
this.toString.valueOf.hello = ...Expected Behaviour
this.toString = this.toString || {};
this.toString.valueOf = this.toString.valueOf || {};
this.toString.valueOf.hello = ...Or maybe throw an error 🤔 (?) It would be great to create a warning since it is an override to standard APIs, but it is not a illegal action.
These reserved keys include: toString, valueOf, etc.
Reactions are currently unavailable