mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 18:53:34 +00:00

PR-URL: https://github.com/nodejs/node/pull/16535 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
15 lines
312 B
JavaScript
15 lines
312 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const v8 = require('v8');
|
|
|
|
[ 1, undefined ].forEach((i) => {
|
|
common.expectsError(
|
|
() => v8.setFlagsFromString(i),
|
|
{
|
|
code: 'ERR_INVALID_ARG_TYPE',
|
|
type: TypeError,
|
|
message: 'The "flags" argument must be of type string'
|
|
}
|
|
);
|
|
});
|