1// Flags: --expose-internals 2'use strict'; 3 4require('../common'); 5const assert = require('assert'); 6const { internalBinding } = require('internal/test/binding'); 7const uv = internalBinding('uv'); 8 9// Ensures that the `UV_...` values in internalBinding('uv') 10// are constants. 11 12const keys = Object.keys(uv); 13keys.forEach((key) => { 14 if (key.startsWith('UV_')) { 15 const val = uv[key]; 16 assert.throws(() => uv[key] = 1, TypeError); 17 assert.strictEqual(uv[key], val); 18 } 19}); 20