UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

26 lines (21 loc) 658 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ 'use strict'; class ParserError extends Error { constructor(hasteModuleName, astNode, message) { super(`Module ${hasteModuleName}: ${message}`); this.node = astNode; // assign the error class name in your custom error (as a shortcut) this.name = this.constructor.name; // capturing the stack trace keeps the reference to your error class Error.captureStackTrace(this, this.constructor); } } module.exports = { ParserError, };