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

81.25% Statements 13/16
50% Branches 1/2
100% Functions 1/1
80% Lines 12/15

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 162x 2x 2x 2x 2x 2x 2x 2x 2x 3x 3x 3x        
/** @import { ExportDefaultDeclaration, Node } from 'estree' */
/** @import { Context } from '../types' */
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();
}