We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f304f91 commit c66f71dCopy full SHA for c66f71d
test/parallel/test-os-constants-signals.js
@@ -0,0 +1,12 @@
1
+'use strict';
2
+
3
+const common = require('../common');
4
+const { test } = require('node:test');
5
+const assert = require('node:assert');
6
+const { constants } = require('node:os');
7
8
+const { internalBinding } = require('internal/test/binding');
9
10
+test('Verify that signals constant is immutable', () => {
11
+ assert.throws(() => constants.signals.FOOBAR = 1337, TypeError);
12
+})
0 commit comments