TypeScript/tests/cases/conformance/classes
Nathan Shively-Sanders 2075f74fef useDefineForClassFields skips emit of ambient properties (#35058)
* useDefineForClassFields skips emit of ambient properties

Previously:

```ts
class C {
  declare p
}
```

would incorrectly emit

```js
class C {
    constructor() {
        Object.defineProperty(this, "p", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: void 0
        });
    }
}
```

when useDefineForClassFields was turned on (for targets <ESNext).

* Fix bug for ESNext as well

This moves the check earlier in the pipeline.

* update baselines
2019-11-22 14:52:29 -08:00
..
classDeclarations Fix emit for classes with both fields and 'extends null' 2017-10-09 13:14:49 -07:00
classExpressions Added test for immediately invoked class expression. 2015-12-08 17:54:33 -08:00
constructorDeclarations Parse quoted constructors as constructors, not methods (#31949) 2019-07-12 14:01:57 -07:00
indexMemberDeclarations Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
members Error when destructuring private property in a parameter (#28562) 2018-11-16 12:47:05 -08:00
methodDeclarations More tests for super.method call chain, improve vary-by (#35013) 2019-11-18 18:03:37 -08:00
propertyMemberDeclarations useDefineForClassFields skips emit of ambient properties (#35058) 2019-11-22 14:52:29 -08:00
awaitAndYieldInProperty.ts disallow 'await' and 'yield' in property and enum member initializer (#34892) 2019-11-14 17:44:48 -08:00
classExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
mixinAccessModifiers.ts #27716: fix protected methods for intersection fo generic classes 2018-10-12 18:23:07 +03:00
mixinClassesAnnotated.ts Add tests 2017-01-29 12:39:15 -08:00
mixinClassesAnonymous.ts Add regression test 2017-02-01 11:37:24 -08:00
mixinClassesMembers.ts Add tests 2017-01-29 12:39:15 -08:00
nestedClassDeclaration.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00