tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 195 forks source link

instanceof is a reserved word #47

Closed ericlathrop closed 12 years ago

ericlathrop commented 12 years ago

instanceof is a reserved word, and shouldn't be used for a function name. It should be renamed to "instanceOf" or maybe "instance.of".

tj commented 12 years ago

keywords are fine as properties

ericlathrop commented 12 years ago

Sorry, it looks like my jshint config was missing the "es5" option, which is why it threw an error on this.