All files / src/compiler/phases/2-analyze/visitors ExportDefaultDeclaration.js

82.35% Statements 14/17
50% Branches 1/2
100% Functions 1/1
81.25% Lines 13/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 172x 2x 2x 2x 2x 2x 2x 2x 2x 2x 3x 3x 3x        
/** @import { ExportDefaultDeclaration, Node } from 'estree' */
/** @import { Context } from '../types' */
/** @import { Scope } from '../../scope' */
import * as e from '../../../errors.js';
 
/**
 * @param {ExportDefaultDeclaration} node
 * @param {Context} context
 */
export function ExportDefaultDeclaration(node, context) {
	if (context.state.ast_type === 'instance') {
		e.module_illegal_default_export(node);
	}

	context.next();
}