You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Array.prototype[Symbol.unscopables] is not a function #34610
Is this because [Symbol.unscopables] is not a function but marked as one in the lib declaration file? According to MDN, object[Symbol.unscopables] should be an object. I removed the parens on this line and it appeared to fix the problem.
Building works correctly with the change but my IDE complains: TS2717: Subsequent property declarations must have the same type. I'm not really sure where the other property declarations of Symbol.unscopables are. Could I get a point in the right direction? Also should I change all the tests that use [Symbol.unscopables]() to [Symbol.unscopables]?
Activity
NicholasLYang commentedon Oct 22, 2019
Is this because
[Symbol.unscopables]is not a function but marked as one in the lib declaration file? According to MDN,object[Symbol.unscopables]should be an object. I removed the parens on this line and it appeared to fix the problem.Building works correctly with the change but my IDE complains:
TS2717: Subsequent property declarations must have the same type. I'm not really sure where the other property declarations ofSymbol.unscopablesare. Could I get a point in the right direction? Also should I change all the tests that use[Symbol.unscopables]()to[Symbol.unscopables]?ExE-Boss commentedon Jan 31, 2021
Ron Buckton (@rbuckton) This is still broken, so I’m fixing it in #42566.