diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 43ca8f0a8c9..78e83c148e6 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -4228,7 +4228,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge shouldHoistVariable(node, /*checkIfSourceFileLevelDecl*/true); if (isTopLevelDeclarationInSystemModule) { - // is system modules top level variables are hoisted + // in System modules top level variables are hoisted + // so variable declarations with destructuring are turned into destructuring assignments write("("); }