SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class Wrapper {
- property = 'test';
- nestedObj = {
- get wrapperProperty() {
- return this.property; // Error: this.property is undefined
- }
- }
- }
- nestedObj = {
- wrapperProperty: () => this.property
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.