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

[BP 7.1.4] - FunctionOverload parser resulting in false positives

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.4
    • 7.1.0, 7.1.1, 7.1.2, 7.1.3
    • eventing
    • 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

        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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty