-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Milestone
Description
TypeScript Version: 3.7.2, 3.8.0-dev-20191119, master
Search Terms: bindObjectDefinePrototypeProperty
Code
import A from "./a";
Object.defineProperty(A.prototype, "foo", {
value: 0
});
Expected behavior:
Code transpiles without errors.
Actual behavior:
TypeError: Cannot set property 'symbol' of undefined
at addDeclarationToSymbol (node_modules\typescript\lib\tsc.js:23649:25)
at bindObjectDefinePrototypeProperty (node_modules\typescript\lib\tsc.js:25640:17)
at bindWorker (node_modules\typescript\lib\tsc.js:25370:36)
at bind (node_modules\typescript\lib\tsc.js:25179:13)
at bindExpressionStatement (node_modules\typescript\lib\tsc.js:24503:13)
at bindChildrenWorker (node_modules\typescript\lib\tsc.js:24010:21)
at bindChildren (node_modules\typescript\lib\tsc.js:23931:17)
at bind (node_modules\typescript\lib\tsc.js:25185:21)
at node_modules\typescript\lib\tsc.js:23937:68
at bindEach (node_modules\typescript\lib\tsc.js:23953:21)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output