1'use strict';
2const common = require('../common');
3const assert = require('assert');
4
5// Flags: --pending-deprecation
6
7common.expectWarning(
8  'DeprecationWarning',
9  'Assigning any value other than a string, number, or boolean to a ' +
10  'process.env property is deprecated. Please make sure to convert the value ' +
11  'to a string before setting process.env with it.',
12  'DEP0104'
13);
14
15// Make sure setting a valid environment variable doesn't
16// result in warning being suppressed, see:
17// https://github.com/nodejs/node/pull/25157
18process.env.FOO = 'apple';
19process.env.ABC = undefined;
20assert.strictEqual(process.env.ABC, 'undefined');
21