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 79e1831 commit 9bf8874Copy full SHA for 9bf8874
test/parallel/test-os-eol.js
@@ -8,12 +8,9 @@ const eol = common.isWindows ? '\r\n' : '\n';
8
9
assert.strictEqual(os.EOL, eol);
10
11
-common.expectsError(function() {
12
- os.EOL = 123;
13
-}, {
14
- type: TypeError,
15
- message: /^Cannot assign to read only property 'EOL' of object '#<Object>'$/
16
-});
+// Test that the `Error` is a `TypeError` but do not check the message as it
+// varies between different JavaScript engines.
+assert.throws(function() { os.EOL = 123; }, TypeError);
17
18
const foo = 'foo';
19
Object.defineProperties(os, {
0 commit comments