Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.5
-
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
- blocks
-
XWIKI-17695 Javascript warning related to Syntax Highlighting
- Closed