MCPcopy
hub / github.com/Tampermonkey/tampermonkey / json_object

Function json_object

src/jslint.js:4618–4651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4616 function json_value() {
4617
4618 function json_object() {
4619 var brace = next_token, object = {};
4620 advance('{');
4621 if (next_token.id !== '}') {
4622 while (next_token.id !== '(end)') {
4623 while (next_token.id === ',') {
4624 warn('unexpected_a', next_token);
4625 advance(',');
4626 }
4627 if (next_token.id !== '(string)') {
4628 warn('expected_string_a');
4629 }
4630 if (object[next_token.string] === true) {
4631 warn('duplicate_a');
4632 } else if (next_token.string === '__proto__') {
4633 warn('dangling_a');
4634 } else {
4635 object[next_token.string] = true;
4636 }
4637 advance();
4638 advance(':');
4639 json_value();
4640 if (next_token.id !== ',') {
4641 break;
4642 }
4643 advance(',');
4644 if (next_token.id === '}') {
4645 warn('unexpected_a', token);
4646 break;
4647 }
4648 }
4649 }
4650 advance('}', brace);
4651 }
4652
4653 function json_array() {
4654 var bracket = next_token;

Callers 1

json_valueFunction · 0.85

Calls 3

advanceFunction · 0.85
warnFunction · 0.85
json_valueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…