| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e49c7bb commit 0e3593a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,13 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var common = require('../common'); | ||
| 3 | - var assert = require('assert'); | ||
| 4 | - var net = require('net'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + const net = require('net'); | ||
| 5 | 5 | ||
| 6 | 6 | net.createServer(common.fail).listen({fd: 2}) | |
| 7 | 7 | .on('error', common.mustCall(onError)); | |
| 8 | 8 | net.createServer(common.fail).listen({fd: 42}) | |
| 9 | 9 | .on('error', common.mustCall(onError)); | |
| 10 | 10 | ||
| 11 | 11 | function onError(ex) { | |
| 12 | - assert.equal(ex.code, 'EINVAL'); | ||
| 12 | + assert.strictEqual(ex.code, 'EINVAL'); | ||
| 13 | 13 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments