Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-5898

Fast expansion path has inconsistent semantics for pathed references mismatching context

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: IoC System
    • Labels:
      None

      Description

      "Since the beginning of time", the IoC reference resolution system has triggered a hard failure when resolving a reference with a nonempty path whose context doesn't match. Unfortunately the new "fast path" implemented for FLUID-5249, FLUID-5796 uses inconsistent semantics and simply returns "undefined" for some resolution cases. For example, the following listener

                      {
                          // TODO: Replace this with some progressive enhancement action.
                          priority: "last",
                          funcName: "flock.webAudio.outputManager.iOSStart",
                          args: [
                              "{that}",
                              "{audioSystem}.context",
                              "{scriptProcessor}.node", // Resolves to undefined, doesn't error.
                          ]
                      }
      

      is capable of delivering undefined as the 3rd argument where

      {scriptProcessor}

      fails to match as a context.

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: