Problem/Motivation
Using "use strict"; in global scope broke JS aggregation when core/loadjs library is loaded, as mentioned in #3336143-27: Uncaught ReferenceError: loadjs is not defined after drupal core upgrade 9.5.1.
Steps to reproduce
Proposed resolution
Move "use strict"; statement inside function
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3379835-2-move-use-strict.patch | 453 bytes | el7cosmos |
Comments
Comment #2
el7cosmosComment #3
el7cosmosComment #4
keshavv commented"use strict";inside function works.Comment #6
larowlanThanks, cutting alpha 2
Comment #7
larowlansorry, I meant beta 3