Skip to content

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Oct 7, 2022

I was experimenting with making Node.symbol an optional property while watching TV (please don't judge me for what I do in my free time); doing so only caught one meaningful bug: getRangeToExtract was putting undefined into an array that should have only contained Symbols.

It turns out that this array is never actually read after it's built, hence why this never caused a crash. It's been this way since #17625, the PR that introduced this code.

(I checked the other properties, and they are all used.)

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 7, 2022
@Andarist
Copy link
Contributor

Andarist commented Oct 7, 2022

We can't judge you for what we have done ourselves. You are fine.

@jakebailey jakebailey merged commit 67256e5 into microsoft:main Oct 10, 2022
@jakebailey jakebailey deleted the remove-unused-array branch October 10, 2022 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants