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
For some reason, the NPM version isn't in sync with the master branch here. The fix from @jaymaycry works. Just install it like so: npm install git://github.com/mithunsatheesh/node-rules.git#master --save
Its not possible since we cannot rebind an arrow function. Let us know if you have any alternate thoughts on improving the syntax.
From the Spec:
Any reference to arguments, super, this, or new.target within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Environment of an immediately enclosing function.
Breaks when using ES6 - "this" is no longe referencing the fact within condition or consequence:
// this breaks and this is an empty object in my case
condition: (R) => {
console.log('this', this); // prints {}
}
// this of course works and this contains my fact
condition: function(R) {
console.log('this', this); // prints the fact
}
The text was updated successfully, but these errors were encountered: