mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Fix Get/Set being enumerable (#32264)
* Fix Get/Set being enumerable fixes #3610 * fix tests Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
@@ -566,7 +566,7 @@ namespace ts {
|
||||
properties.push(setter);
|
||||
}
|
||||
|
||||
properties.push(createPropertyAssignment("enumerable", createTrue()));
|
||||
properties.push(createPropertyAssignment("enumerable", getAccessor || setAccessor ? createFalse() : createTrue()));
|
||||
properties.push(createPropertyAssignment("configurable", createTrue()));
|
||||
|
||||
const expression = setTextRange(
|
||||
|
||||
@@ -1675,7 +1675,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
properties.push(
|
||||
createPropertyAssignment("enumerable", createTrue()),
|
||||
createPropertyAssignment("enumerable", getAccessor || setAccessor ? createFalse() : createTrue()),
|
||||
createPropertyAssignment("configurable", createTrue())
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user