Open rishabhrathod01 opened 2 years ago
Current JSObject logic to replace this. with JSObjectName. causes JSObject to not handle as expected according to javascript spec.
this.
JSObjectName.
Intercom user query link
User shared screenshot
export default { myFunc: () => { const obj = { test: [1,2,3], getList(){ return this.test; } } return obj.getList() } }
myFunc
Instead of using this.test use obj.test to point the particular object.
this.test
obj.test
export default { myFunc: () => { const obj = { test: [1,2,3], getList(){ return obj.test; } } return obj.getList() } }
1.7.9
Assuming 5% of JSObject users face this issue
@Rishabh-Rathod @arunvjn could you add an estimate for fixing this issue?
Is there an existing issue for this?
Description
Current JSObject logic to replace
this.
withJSObjectName.
causes JSObject to not handle as expected according to javascript spec.Intercom user query link
User shared screenshot
Steps To Reproduce
myFunc
and check outputWorkaround
Instead of using
this.test
useobj.test
to point the particular object.Version
1.7.9