6d92a2942f
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.
12 lines
171 B
TypeScript
12 lines
171 B
TypeScript
// @allowJs: true
|
|
// @noEmit: true
|
|
// @checkJs: true
|
|
// @Filename: bug27341.js
|
|
if (false) {
|
|
/**
|
|
* @param {string} s
|
|
*/
|
|
const x = function (s) {
|
|
};
|
|
}
|