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

Javascript warning related to Syntax Highlighting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Blocker
    • None
    • 12.7-rc-1
    • Other
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: