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
test: handles default export of anonymous class with correct name #4324 #4377
base: master
Are you sure you want to change the base?
test: handles default export of anonymous class with correct name #4324 #4377
Conversation
9be2287
to
bb142ba
Compare
@@ -0,0 +1,3 @@ | |||
import defaultClass from './foo.js'; | |||
|
|||
assert.strictEqual('default', defaultClass.name); |
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.
Shouldn't the name be undefined
?
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.
no, that's essentially the bug. a default exported anonymous class has the name default
. you can try it out in node.js or in a browser.
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.
Indeed you are right. Funny quirk.
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.
The test here is currently failing, are there plans to fix it?
yeah, the idea is that as soon as someone finds the time to fix the issue the test can be pulled in as well. |
eca6a6c
to
71d20c9
Compare
cbd94e6
to
f1538ce
Compare
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
[failing] test case for 4324
is
test/function/samples/
the correct bucket?