Skip to content

Hwk3: cannot set property 'aFunc' of undefined #37

Description

@njt2116

I am failing on the third test in gulp. I guess i don't understand what Lines 33-35 are testing. It seems to me that we are calling inject on ModuleA with the the result of calling aFunc as the parameter. What is the point of doing this? I think that according to the specs, that if there are no further arguments provided in aFunc, it should just return the value of calling aFunc() back. Why does this seem to be more complicated than this?

The test is to see if we can "load multiple modules." Not sure why adding another module would cause the program to halt. Is it because I am using "this" improperly? It seems that they would be sequential calls. Maybe I am missing an async consideration.

Additionally, should we be using the regex in our register function to parse through the array of dependencies? Or in our inject function? Or both?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions