We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeScript Version: 3.7.0-dev.20191018
Search Terms:
Code
const x = [][Symbol.unscopables]; console.log(x.copyWithin); const y = [][Symbol.unscopables](); console.log(y.copyWithin);
Expected behavior: x.copyWithin occurs no error, and [][Symbol.unscopables]() occurs type error.
x.copyWithin
[][Symbol.unscopables]()
Actual behavior: x.copyWithin occurs type error, and [][Symbol.unscopables]() occurs runtime exception.
Playground Link: http://www.typescriptlang.org/play/?ts=Nightly&ssl=6&ssc=1&pln=1&pc=1#code/MYewdgzgLgBAHjAvDA2gXRQZQJ4FsBGIANgHQCukoADgIb5ECmEaA3ALABQokxDJRIAOYAKOCWrYA6gEsoAC2lgAlOw6du0GNiSoMOAsXKUQtekzTCV68BF78hw7OJNTZC5aqA
Related Issues:
TypeScript Version: 3.7.0-dev.20191018
Search Terms:
Code
Expected behavior:
x.copyWithinoccurs no error, and[][Symbol.unscopables]()occurs type error.Actual behavior:
x.copyWithinoccurs type error, and[][Symbol.unscopables]()occurs runtime exception.Playground Link:
http://www.typescriptlang.org/play/?ts=Nightly&ssl=6&ssc=1&pln=1&pc=1#code/MYewdgzgLgBAHjAvDA2gXRQZQJ4FsBGIANgHQCukoADgIb5ECmEaA3ALABQokxDJRIAOYAKOCWrYA6gEsoAC2lgAlOw6du0GNiSoMOAsXKUQtekzTCV68BF78hw7OJNTZC5aqA
Related Issues: