Uploaded image for project: 'Wiki Editor Tools'
  1. Wiki Editor Tools
  2. WIKIEDITOR-83

Error in the console when using Syntax highlighting

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      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] 
      

      Reason:

      The arguments.callee JS contruction is now forbidden since ES5 in strict mode (cf https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee) so we shouldn't use it in our codes.

      Attachments

        Issue Links

          Activity

            People

              cdesableau Clément Desableau
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: