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
test('Private field is a number',(assert)=>{let{ private }=MyClass[Symbol.metadata][EXPOSE];let{ get }=private.find((m)=>m.name==='#value');letinstance=newMyClass();assert.equal(typeofget.call(instance),'number');})
However this would cause an error (strict mode) because private is a reserved word. Should these be given different names to prevent this from happening?
Closing this issue as after some debate we were not able to come up with better alternatives. There's also #451 which would prevent this issue in general as an option.
I noticed this example in the slides:
However this would cause an error (strict mode) because
private
is a reserved word. Should these be given different names to prevent this from happening?Related: #417
The text was updated successfully, but these errors were encountered: