Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"console" reporter crashes if object contains a BigInt #914

kanongil opened this issue Apr 29, 2019 · 0 comments

"console" reporter crashes if object contains a BigInt #914

kanongil opened this issue Apr 29, 2019 · 0 comments


Copy link

@kanongil kanongil commented Apr 29, 2019

The following test crashes the console reporter:

it('test', () => {



(node:4086) UnhandledPromiseRejectionWarning: TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at stringify (/Users/gil/Development/node-m3u8parse/node_modules/json-stable-stringify/index.js:36:25)
    at module.exports (/Users/gil/Development/node-m3u8parse/node_modules/json-stable-stringify/index.js:70:7)
    at Object.internals.stringify (/Users/gil/Development/node-m3u8parse/node_modules/@hapi/lab/lib/reporters/console.js:16:12)
    at module.exports.internals.Reporter.internals.Reporter.end (/Users/gil/Development/node-m3u8parse/node_modules/@hapi/lab/lib/reporters/console.js:186:42)
    at module.exports.internals.Reporter.reporter.finalize (/Users/gil/Development/node-m3u8parse/node_modules/@hapi/lab/lib/reporters/index.js:94:28)
    at (/Users/gil/Development/node-m3u8parse/node_modules/@hapi/lab/lib/runner.js:124:21)
(node:4086) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:4086) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.