-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[meta] Overarching code audit of differences #19
Comments
I'll go through your points one by one:
|
I'm in a bit of a rush and I feel bad for doing this bad multi-response thing. |
I'll go through your points one by one:
|
@mozfreddyb can we consider making the expression operators use an allow list of permitted expressions rather than a block list of checked operators. Such that we would have |
@mozfreddyb also I notice you are only checking for |
As mentioned I would check through the code and see for obvious differences and pull them out. I'm going to raise everything here and we can decide which differences we care about and should import.
Rather than question the differences etc, I will just state them as fact and we can dismiss and add comments (none of this should be considered criticism, other than I'm an idiot for making a competing code base etc 😬).
.callee.properties
or.callee.name
rather than checking for if it is anIdentifier
orMemberExpression
in this code this means new ESNext expression or something we missed breaks the extension rather than working (Hopefully getting other people to patch etc).CallExpression
andTaggedTemplateExpression
could be collapsed into one which is a TODO.That should mostly be it...
Different code example over using switch or if statements:
The text was updated successfully, but these errors were encountered: