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'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
console.log('hello world'); |
console.log('hello world'); |
||||
|
@ -1,6 +1,5 @@ |
|||||
'use strict'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
// custom error throwing
|
// custom error throwing
|
||||
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
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' }); |
throw ({ name: 'MyCustomError', message: 'This is a custom message' }); |
||||
^ |
^ |
||||
MyCustomError: This is a custom message |
MyCustomError: This is a custom message |
||||
|
@ -1,5 +1,5 @@ |
|||||
before |
before |
||||
*test*message*throw_in_line_with_tabs.js:10 |
*test*message*throw_in_line_with_tabs.js:9 |
||||
throw ({ foo: 'bar' }); |
throw ({ foo: 'bar' }); |
||||
^ |
^ |
||||
[object Object] |
[object Object] |
||||
|
@ -1,6 +1,5 @@ |
|||||
'use strict'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
// custom error throwing
|
// custom error throwing
|
||||
throw ({ foo: 'bar' }); |
throw ({ foo: 'bar' }); |
||||
|
@ -1,4 +1,4 @@ |
|||||
*test*message*throw_non_error.js:6 |
*test*message*throw_non_error.js:5 |
||||
throw ({ foo: 'bar' }); |
throw ({ foo: 'bar' }); |
||||
^ |
^ |
||||
[object Object] |
[object Object] |
||||
|
@ -1,5 +1,4 @@ |
|||||
'use strict'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
throw null; |
throw null; |
||||
|
@ -1,5 +1,5 @@ |
|||||
|
|
||||
*test*message*throw_null.js:5 |
*test*message*throw_null.js:4 |
||||
throw null; |
throw null; |
||||
^ |
^ |
||||
null |
null |
||||
|
@ -1,5 +1,4 @@ |
|||||
'use strict'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
throw undefined; |
throw undefined; |
||||
|
@ -1,5 +1,5 @@ |
|||||
|
|
||||
*test*message*throw_undefined.js:5 |
*test*message*throw_undefined.js:4 |
||||
throw undefined; |
throw undefined; |
||||
^ |
^ |
||||
undefined |
undefined |
||||
|
@ -1,5 +1,4 @@ |
|||||
'use strict'; |
'use strict'; |
||||
var common = require('../common'); |
var common = require('../common'); |
||||
var assert = require('assert'); |
|
||||
|
|
||||
require(common.fixturesDir + '/require-bin/bin/req.js'); |
require(common.fixturesDir + '/require-bin/bin/req.js'); |
||||
|
Loading…
Reference in new issue