MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / pushcontext

Function pushcontext

src/cm/javascript.js:211–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210 var defaultVars = {name: "this", next: {name: "arguments"}};
211 function pushcontext() {
212 cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
213 cx.state.localVars = defaultVars;
214 }
215 function popcontext() {
216 cx.state.localVars = cx.state.context.vars;
217 cx.state.context = cx.state.context.prev;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…