-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Remove tagged template literal global caching #7722
Remove tagged template literal global caching #7722
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/7589/ |
} | ||
assert.equal(foo(), foo()); | ||
assert.equal(bar(), bar()); | ||
assert.notEqual(foo(), bar()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please test the output? A bug could cause assert.equal(0, 0);
for ex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use expect(actual).[not].toBe(expected)
instead of assert
?
if (!isStringsRawEqual) { | ||
callExpressionInput.push(t.arrayExpression(raws)); | ||
} | ||
const programPath = path.find(p => p.isProgram()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use path.scope.getProgramParent()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update
Fixes #7350.