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
// fine([].sort)();(1&&[].sort)();// Uncaught TypeError: Cannot convert undefined or null to object// at sort (<anonymous>)lets=[].sort;s();// Uncaught TypeError: Cannot convert undefined or null to object// at sort (<anonymous>)
π Search Terms
context TypeError Cannot convert
undefined
ornull
to objectnoImplicitThis
disambiguatorπ Version & Regression Information
this
β― Playground Link
https://www.typescriptlang.org/play/?target=99&jsx=0&ts=5.7.0-dev.20241015#code/PTAEDMEsDsFMCgAUBtAugOgM4HsBOAXASkUIG54kBGUAMhtDSzyJPJFAFVoBjAQwFcA5gAt8oACoBPAA6wAorlx4AXKADCvaNGxju2aADdYBUP2gATWFDjnQeUNH4AbJ6HzY7AIwBWsbvnh2UGDeMRwTRAAeTX1JAFtsfkwAPkIKJ1gw0ABeBgxw-HJMVkCwLj4hUQkZeUUVdU1tXX0jEzNLa1hbe0cXNw9sHz8AoJCw5lAomOh4xJTCIA
π» Code
π Actual behavior
Run-time error
π Expected behavior
Compile-time error
Additional information about the issue
mdn/content#36355
The text was updated successfully, but these errors were encountered: