Files
Pipi Chen b8a3516cd6 update
2020-05-07 01:02:44 +08:00

6 lines
203 B
JavaScript

import * as ERROR_MSGS from "../constants/error_msgs";
export function isStackOverflowExeption(error) {
return (error instanceof RangeError ||
error.message === ERROR_MSGS.STACK_OVERFLOW);
}