#READ BEFORE CREATING A NEW ISSUE
The issue tracker is for bug reports and feature requests. If you'd like help with a usage question please use the [bluebird] tag in Stack Overflow and ask there. The tag is monitored regularly. You may also discuss things that are out of scope for the issue tracker on the mailing list.
-
/benchmarkcontains benchmark scripts and stats of benchmarks -
/toolscontains building and testing tools and scripts -
/srccontains the source code -
/testcontains test code/test/mochacontains tests using the mocha testing framework/test/browsera directory that can be statically served using a webserver to run tests in browsers. See testing in browsers.
Use the same style as is used in the surrounding code.
###Whitespace
- No more than 80 columns per line
- 4 space indentation
- No trailing whitespace
- LF at end of files
- Curly braces can be left out of single statement
if/else/else ifs when it is obvious there will never be multiple statements such as null check at the top of a function for an early return. - Add an additional new line between logical sections of code.
###Variables
- Use multiple
varstatements instead of a single one with comma separator. Do not declare variables until you need them.
###Equality and type checks
- Always use
===except when checking for null or undefined. To check for null or undefined, usex == null. - For checks that can be done with
typeof: do not make helper functions, save results oftypeofto a variable or make the type string a non-constant. Always write the check in the formtypeof expression === "constant string"even if it feels like repeating yourself.
Make sure that all the tests run before and after you make your additions. Look in the testing section in README.md for how to run the tests. Add relevant new tests.