Closed
Description
π Search Terms
default export specifier debug failure
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
N/A
π» Code
/// <reference path="fourslash.ts" />
// @module: nodenext
// @allowJs: true
// @Filename: /node_modules/dom7/index.d.ts
//// export interface Dom7Array {
//// length: number;
//// prop(propName: string): any;
//// }
////
//// export interface Dom7 {
//// (): Dom7Array;
//// fn: any;
//// }
////
//// declare const Dom7: Dom7;
////
//// export {
//// Dom7 as $,
//// };
// @Filename: /dom7.js
//// import * as methods from 'dom7';
//// Object.keys(methods).forEach((methodName) => {
//// if (methodName === '$') return;
//// methods.$.fn[methodName] = methods[methodName];
//// });
////
//// export default methods.$;
// @Filename: /swipe-back.js
//// import $ from './dom7.js';
//// /*1*/
verify.completions({
marker: "1",
// some kind of a check should be added here
preferences: {
includeCompletionsForModuleExports: true,
}
});
π Actual behavior
It crashes
π Expected behavior
It shouldn't crash
Additional information about the issue
repro based on #58018 (comment)