• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3const assert = require('assert');
4const v8 = require('v8');
5
6[1, undefined].forEach((value) => {
7  assert.throws(
8    () => v8.setFlagsFromString(value),
9    {
10      code: 'ERR_INVALID_ARG_TYPE',
11      name: 'TypeError',
12      message: 'The "flags" argument must be of type string.' +
13               common.invalidArgTypeHelper(value)
14    }
15  );
16});
17