MCPcopy Index your code
hub / github.com/deployd/deployd / verifyNotReplaced

Function verifyNotReplaced

test-app/public/sinon.js:1984–1990  ·  view source on GitHub ↗
(object, property)

Source from the content-addressed store, hash-verified

1982 }
1983
1984 function verifyNotReplaced(object, property) {
1985 forEach(fakeRestorers, function(fakeRestorer) {
1986 if (fakeRestorer.object === object && fakeRestorer.property === property) {
1987 throw new TypeError("Attempted to replace " + property + " which is already replaced");
1988 }
1989 });
1990 }
1991
1992 sandbox.replace = function replace(object, property, replacement) {
1993 var descriptor = getPropertyDescriptor(object, property);

Callers 1

SandboxFunction · 0.85

Calls 1

forEachFunction · 0.85

Tested by

no test coverage detected