MCPcopy Create free account
hub / github.com/CanadaHonk/shadow / constructor

Method constructor

engine/cssparser.js:171–183  ·  view source on GitHub ↗
(bailing = true)

Source from the content-addressed store, hash-verified

169 rules = [];
170
171 constructor(bailing = true) {
172 if (bailing) {
173 const _parse = this.parse.bind(this);
174 this.parse = (...args) => {
175 try {
176 return _parse(...args);
177 } catch (e) {
178 console.warn('CSSParser bailed', e);
179 return [];
180 }
181 };
182 }
183 }
184
185 parse(input) {
186 const checkToken = (a, b) => !this.escaping && this.stringState === StringState.None && a === b;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected