js-slang
Version:
Javascript-based implementations of Source, written in Typescript
22 lines (21 loc) • 725 B
TypeScript
import { ErrorSeverity, ErrorType, Node } from '../types';
import { RuntimeSourceError } from './runtimeSourceError';
export declare class TimeoutError extends RuntimeSourceError {
}
export declare class PotentialInfiniteLoopError extends TimeoutError {
private maxExecTime;
type: ErrorType;
severity: ErrorSeverity;
constructor(node: Node, maxExecTime: number);
explain(): string;
elaborate(): string;
}
export declare class PotentialInfiniteRecursionError extends TimeoutError {
private calls;
private maxExecTime;
type: ErrorType;
severity: ErrorSeverity;
constructor(node: Node, calls: [string, any[]][], maxExecTime: number);
explain(): string;
elaborate(): string;
}