9561801ed80805df06dc00335e3963adc4f0a537ad91e09ba4d7c041c37a521d8443a903de5beba2c1e5b88091071db002b4d92434a8b9231d5b1b5ebd12b1 465 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = assertNode;
  6. var _isNode = require("../validators/isNode.js");
  7. function assertNode(node) {
  8. if (!(0, _isNode.default)(node)) {
  9. var _node$type;
  10. const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node);
  11. throw new TypeError(`Not a valid node of type "${type}"`);
  12. }
  13. }
  14. //# sourceMappingURL=assertNode.js.map