Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55170

[Eventing] : FunctionOverload parser resulting in false positives

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Morpheus, Elixir
    • Elixir, 7.1.3
    • eventing
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      functionOverload regex results in false positives where it incorrectly flags function names having reserved function names as their prefix. Example:

      function createTimerBlah(a,b) {
      return a+b
      }
      

      Here, the regex finds "function createTimer" and falsely determines this to be an overload of the createTimer reserved function.

      Similar examples include:

      function logger() {}
      

      Regression was introduced in 7.1.0 : https://issues.couchbase.com/browse/MB-51362

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sujay.gad Sujay Gad
              abhishek.jindal Abhishek Jindal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty