We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If this is duplicate of #12123 then please close it
"use strict" class Dupa extends String { constructor(data) { super(data) this['label'] = data.value } } const dupa = new Dupa({value: 'Test'}) console.log(dupa['label'])
Works in:
TS compiled code causes runtime error: VM2008:11 Uncaught TypeError: Cannot create property 'label' on string '[object Object]'(…)
VM2008:11 Uncaught TypeError: Cannot create property 'label' on string '[object Object]'(…)
The text was updated successfully, but these errors were encountered:
this indeed is a duplicate of #12123, please see the documentation in https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
Sorry, something went wrong.
No branches or pull requests
If this is duplicate of #12123 then please close it
Works in:
TS compiled code causes runtime error:
VM2008:11 Uncaught TypeError: Cannot create property 'label' on string '[object Object]'(…)
The text was updated successfully, but these errors were encountered: