pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/2d6e942035b3480b5a208ac9f9fe5b651a606825

er-b69241e157469407.css" /> test: add test for 'ERR_INVALID_CALLBACK' · nodejs/node@2d6e942 · GitHub
Skip to content

Commit 2d6e942

Browse files
razvanbhMylesBorins
authored andcommitted
test: add test for 'ERR_INVALID_CALLBACK'
PR-URL: #24224 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 540b741 commit 2d6e942

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/sequential/test-inspector-module.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ session.post('Runtime.evaluate', { expression: '2 + 2' });
4646
);
4747
});
4848

49+
[1, 'a', {}, [], true, Infinity].forEach((i) => {
50+
common.expectsError(
51+
() => session.post('test', {}, i),
52+
{
53+
code: 'ERR_INVALID_CALLBACK',
54+
type: TypeError,
55+
message: 'Callback must be a function'
56+
}
57+
);
58+
});
59+
4960
common.expectsError(
5061
() => session.connect(),
5162
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy