MCPcopy Create free account
hub / github.com/babel/minify / pop

Method pop

scripts/plugin-timing.js:31–46  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

29 this.visits[name]++;
30 }
31 pop(name) {
32 if (hop(this.events, name) && this.events[name].length > 0) {
33 const start = this.events[name].shift();
34 const delta = this.diff(start);
35
36 if (!hop(this.results, name)) {
37 this.results[name] = {
38 aggregate: 0,
39 values: []
40 };
41 }
42
43 this.results[name].aggregate += delta;
44 this.results[name].values.push(delta);
45 }
46 }
47}
48
49run(process.argv[2]);

Callers 3

actual.jsFile · 0.80
wrapPluginVisitorMethodFunction · 0.80
runFunction · 0.80

Calls 2

pushMethod · 0.80
hopFunction · 0.70

Tested by

no test coverage detected