MCPcopy
hub / github.com/microsoft/playwright / NodeZone

Class NodeZone

packages/utils/nodePlatform.ts:35–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33const pipelineAsync = util.promisify(pipeline);
34
35class NodeZone implements Zone {
36 private _zone: ZoneImpl;
37
38 constructor(zone: ZoneImpl) {
39 this._zone = zone;
40 }
41
42 push<T>(data: T) {
43 return new NodeZone(this._zone.with('apiZone', data));
44 }
45
46 pop() {
47 return new NodeZone(this._zone.without('apiZone'));
48 }
49
50 run<R>(func: () => R): R {
51 return this._zone.run(func);
52 }
53
54 data<T>(): T | undefined {
55 return this._zone.data('apiZone');
56 }
57}
58
59let boxedStackPrefixes: string[] = [];
60export function setBoxedStackPrefixes(prefixes: string[]) {

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…