Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17695

Javascript warning related to Syntax Highlighting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Solved By
    • Affects Version/s: 12.7-rc-1
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I got the following warning whenever I edit a Javascript Extension with Object editor:

      août 26, 2020 2:25:14 PM com.google.javascript.jscomp.LoggerErrorManager println
      GRAVE: xwiki:SyntaxHighlighting.HighlightingModeXwiki21tags:154: ERROR - [JSC_ARGUMENTS_CALLEE_FORBIDDEN] "arguments.callee" cannot be used in strict mode
        154|         return cont(arguments.callee);
                                 ^^^^^^^^^^^^^^^^
      
      août 26, 2020 2:25:14 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
      AVERTISSEMENT: 1 error(s), 0 warning(s)
      2020-08-26 14:25:14,178 [qtp783286238-16 - http://localhost:8080/xwiki/bin/jsx/SyntaxHighlighting/HighlightingModeXwiki21tags?minify=true] ERROR c.x.x.w.s.JsExtension          - Error at line [154], column [20]: ["arguments.callee" cannot be used in strict mode] 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                surli Simon Urli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: