mirror of https://github.com/lukechilds/node.git
Browse Source
Many test modules load assert but do not use it. This change removes those instances. It also removes a handful of other unused variables when they were nearby. PR-URL: https://github.com/nodejs/node/pull/4438 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>v5.x
Rich Trott
9 years ago
committed by
Jeremiah Senkpiel
42 changed files with 12 additions and 60 deletions
@ -1,5 +1,4 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
console.log('hello world'); |
|||
|
@ -1,6 +1,5 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
// custom error throwing
|
|||
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
|||
|
@ -1,4 +1,4 @@ |
|||
*test*message*throw_custom_error.js:6 |
|||
*test*message*throw_custom_error.js:5 |
|||
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
|||
^ |
|||
MyCustomError: This is a custom message |
|||
|
@ -1,5 +1,5 @@ |
|||
before |
|||
*test*message*throw_in_line_with_tabs.js:10 |
|||
*test*message*throw_in_line_with_tabs.js:9 |
|||
throw ({ foo: 'bar' }); |
|||
^ |
|||
[object Object] |
|||
|
@ -1,6 +1,5 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
// custom error throwing
|
|||
throw ({ foo: 'bar' }); |
|||
|
@ -1,4 +1,4 @@ |
|||
*test*message*throw_non_error.js:6 |
|||
*test*message*throw_non_error.js:5 |
|||
throw ({ foo: 'bar' }); |
|||
^ |
|||
[object Object] |
|||
|
@ -1,5 +1,4 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
throw null; |
|||
|
@ -1,5 +1,5 @@ |
|||
|
|||
*test*message*throw_null.js:5 |
|||
*test*message*throw_null.js:4 |
|||
throw null; |
|||
^ |
|||
null |
|||
|
@ -1,5 +1,4 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
throw undefined; |
|||
|
@ -1,5 +1,5 @@ |
|||
|
|||
*test*message*throw_undefined.js:5 |
|||
*test*message*throw_undefined.js:4 |
|||
throw undefined; |
|||
^ |
|||
undefined |
|||
|
@ -1,5 +1,4 @@ |
|||
'use strict'; |
|||
var common = require('../common'); |
|||
var assert = require('assert'); |
|||
|
|||
require(common.fixturesDir + '/require-bin/bin/req.js'); |
|||
|
Loading…
Reference in new issue