Consistently 'use strict' for JS code

Change-Id: I6f6e06ad32ffa87242f5a0f41c176149b754e2ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169187
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
Stephan Bergmann 2024-06-19 10:24:57 +02:00
parent 5feafc1e20
commit 81ac964986
4 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,5 @@
'use strict';
if (!('preRun' in Module)) Module['preRun'] = [];
Module.preRun.push(function() {
ENV.SAL_LOG = "+WARN"

View file

@ -1,3 +1,5 @@
'use strict';
Module['arguments'] = [
'--norestore',
'--nologo',

View file

@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
Module.initUno = function() {
if (Module.uno === undefined) {
Module.uno = init_unoembind_uno(Module);

View file

@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
Module.addOnPostRun(function() {
console.log('Running embindtest');
Module.initUno();