| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dfac82a commit 6809ef8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,6 +22,7 @@ | |||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | 24 | const assert = require('assert'); | |
| 25 | + const { kMaxLength } = require('buffer'); | ||
| 25 | 26 | ||
| 26 | 27 | const zero = []; | |
| 27 | 28 | const one = [ Buffer.from('asdf') ]; | |
@@ -84,8 +85,8 @@ assert.throws(() => { | |||
| 84 | 85 | Buffer.concat([Buffer.from('hello')], -2); | |
| 85 | 86 | }, { | |
| 86 | 87 | code: 'ERR_OUT_OF_RANGE', | |
| 87 | - message: 'The value of "length" is out of range. It must be >= 0 && <= 9007199254740991. ' + | ||
| 88 | - 'Received -2' | ||
| 88 | + message: 'The value of "length" is out of range. It must be >= 0 && <= ' + | ||
| 89 | + `${kMaxLength}. Received -2` | ||
| 89 | 90 | }); | |
| 90 | 91 | ||
| 91 | 92 | // eslint-disable-next-line node-core/crypto-check | |
| Back | FazBrowse Home | New Git URL |
0 commit comments