mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
57 lines
834 B
TypeScript
57 lines
834 B
TypeScript
|
// 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;
|
||
|
}
|
||
|
}
|