In the binder, unreachable code mistakenly skips the `bindJSDoc` call in `bindChildrenWorker`, which sets parent pointers. The fix is to call `bindJSDoc` in the case of unreachable code as well.
11 lines
171 B
TypeScript
11 lines
171 B
TypeScript
// @allowJs: true
|
|
// @noEmit: true
|
|
// @checkJs: true
|
|
// @Filename: bug27341.js
|
|
if (false) {
|
|
/**
|
|
* @param {string} s
|
|
*/
|
|
const x = function (s) {
|
|
};
|
|
}
|