mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
17 lines
276 B
JavaScript
17 lines
276 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const unexpectedValues = [
|
|
undefined,
|
|
null,
|
|
1,
|
|
{},
|
|
() => {},
|
|
];
|
|
for (const it of unexpectedValues) {
|
|
assert.throws(() => {
|
|
process.setSourceMapsEnabled(it);
|
|
}, /ERR_INVALID_ARG_TYPE/);
|
|
}
|