Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

perf:getName is Promise & moduleName as prop #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swainet
Copy link

@swainet swainet commented Jul 6, 2016

#79

@ghost
Copy link

ghost commented Jul 6, 2016

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@ghost
Copy link

ghost commented Jul 12, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!


if (!this.moduleName && !this.isPolyfill() && !this.isAsset_DEPRECATED()) {
this.getName().then(name => {
this.moduleName = name;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, the moduleName property might or might not exists. I’m not really happy with this solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants