MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / setGlobalObjectConstantProperties

Function setGlobalObjectConstantProperties

ses.cjs:5276–5285  ·  view source on GitHub ↗
(globalObject)

Source from the content-addressed store, hash-verified

5274 * @param {object} globalObject
5275 */$h‍_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
5276const setGlobalObjectConstantProperties= (globalObject)=>{
5277 for( const [name, constant]of entries(constantProperties)) {
5278 defineProperty(globalObject, name, {
5279 value: constant,
5280 writable: false,
5281 enumerable: false,
5282 configurable: false});
5283
5284 }
5285 };
5286
5287/**
5288 * setGlobalObjectMutableProperties()

Callers 2

CompartmentFunction · 0.85
repairIntrinsicsFunction · 0.85

Calls 1

definePropertyFunction · 0.85

Tested by

no test coverage detected