This website works better with JavaScript.
Home
Explore
Help
Sign In
lukechilds
/
node
mirror of
https://github.com/lukechilds/node.git
Watch
1
Star
0
Fork
0
Code
Issues
Projects
Releases
Wiki
Activity
15658
Commits
131
Branches
446
Tags
325 MiB
Tree:
5e07bce166
node
/
test
/
message
/
throw_non_error.js
6 lines
86 B
Raw
Normal View
History
test: enable linting for tests Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 years ago
'use strict'
;
test: remove unnecessary assignments common.js needs to be loaded in all tests so that there is checking for variable leaks and possibly other things. However, it does not need to be assigned to a variable if nothing in common.js is referred to elsewhere in the test. PR-URL: https://github.com/nodejs/node/pull/4408 Reviewed-By: James M Snell <jasnell@gmail.com>
9 years ago
require
(
'../common'
)
;
Close #974 Properly report traceless errors. Also, tests for the same.
14 years ago
// custom error throwing
Lint all the JavaScripts.
13 years ago
throw
(
{
foo
:
'bar'
}
)
;