MCPcopy
hub / github.com/apache/echarts / constructor

Method constructor

src/util/conditionalExpression.ts:176–188  ·  view source on GitHub ↗
(rVal: unknown)

Source from the content-addressed store, hash-verified

174 private _condVal: RegExp;
175
176 constructor(rVal: unknown) {
177 // Support condVal: RegExp | string
178 const condValue = this._condVal = isString(rVal) ? new RegExp(rVal)
179 : isRegExp(rVal) ? rVal as RegExp
180 : null;
181 if (condValue == null) {
182 let errMsg = '';
183 if (__DEV__) {
184 errMsg = makePrintable('Illegal regexp', rVal, 'in');
185 }
186 throwError(errMsg);
187 }
188 }
189
190 evaluate(lVal: unknown): boolean {
191 const type = typeof lVal;

Callers

nothing calls this directly

Calls 2

makePrintableFunction · 0.90
throwErrorFunction · 0.90

Tested by

no test coverage detected