swc/crates/swc_bundler/tests/.cache/untrusted/19ab3eea15211f07b82720d7ad0f087bc94dc709.ts

57 lines
834 B
TypeScript
Raw Normal View History

// Loaded from https://unpkg.com/luxon@1.25.0/src/zones/invalidZone.js
import Zone from "../zone.js";
/**
* A zone that failed to parse. You should never need to instantiate this.
* @implements {Zone}
*/
export default class InvalidZone extends Zone {
constructor(zoneName) {
super();
/** @private */
this.zoneName = zoneName;
}
/** @override **/
get type() {
return "invalid";
}
/** @override **/
get name() {
return this.zoneName;
}
/** @override **/
get universal() {
return false;
}
/** @override **/
offsetName() {
return null;
}
/** @override **/
formatOffset() {
return "";
}
/** @override **/
offset() {
return NaN;
}
/** @override **/
equals() {
return false;
}
/** @override **/
get isValid() {
return false;
}
}