Skip to content

Commit f62567b

Browse files
sarahmeyerFishrock123
authored andcommitted
test: use const instead of var in test-require-json.js
PR-URL: #9904 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5f3f54d commit f62567b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎test/parallel/test-require-json.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
2-
varcommon=require('../common');
3-
varpath=require('path');
4-
varassert=require('assert');
2+
constcommon=require('../common');
3+
constpath=require('path');
4+
constassert=require('assert');
55

66
try{
77
require(path.join(common.fixturesDir,'invalid.json'));
88
}catch(err){
9-
varre=/test[/\\]fixtures[/\\]invalid.json:Unexpectedstring/;
10-
vari=err.message.match(re);
9+
constre=/test[/\\]fixtures[/\\]invalid.json:Unexpectedstring/;
10+
consti=err.message.match(re);
1111
assert.notStrictEqual(null,i,'require() json error should include path');
1212
}

0 commit comments

Comments
(0)