MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / checkProto

Function checkProto

scripts/libs/esprima.js:2484–2493  ·  view source on GitHub ↗
(key, computed, hasProto)

Source from the content-addressed store, hash-verified

2482 }
2483
2484 function checkProto(key, computed, hasProto) {
2485 if (computed === false && (key.type === Syntax.Identifier && key.name === '__proto__' ||
2486 key.type === Syntax.Literal && key.value === '__proto__')) {
2487 if (hasProto.value) {
2488 tolerateError(Messages.DuplicateProtoProperty);
2489 } else {
2490 hasProto.value = true;
2491 }
2492 }
2493 }
2494
2495 function parseObjectProperty(hasProto) {
2496 var token = lookahead, node = new Node(), computed, key, maybeMethod, value;

Callers 1

parseObjectPropertyFunction · 0.85

Calls 1

tolerateErrorFunction · 0.85

Tested by

no test coverage detected