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
Given x: ->thrownewError'oops!'When-> @x= 'overridex'
Then->"it is ok"
but in rspec-given, this will fail.
Javascript provide Object.defineProperties, which allow developers to define getter and setter separately. As a result, execute setter without executing getter is possible. The question here is: which behavior should it have? Does the semantic is consistent with general evaluation rule?
At this moment, I have no idea about this choice. Have to survey how other projects dealing with this issue.
Any suggestion is welcome!
The text was updated successfully, but these errors were encountered:
Currently, this test will pass:
but in rspec-given, this will fail.
Javascript provide
Object.defineProperties
, which allow developers to define getter and setter separately. As a result, execute setter without executing getter is possible. The question here is: which behavior should it have? Does the semantic is consistent with general evaluation rule?At this moment, I have no idea about this choice. Have to survey how other projects dealing with this issue.
Any suggestion is welcome!
The text was updated successfully, but these errors were encountered: