Strict mode problems with IE/Edge

Hi,
I have added some exposed methods to my application to access them from the html page, but IE and Edge throw an error. They say:

Assignment to read-only properties is not allowed in strict mode

In the first lines of the generated JS I have seen these code

(function (console, $hx_exports, $global) { "use strict";
$hx_exports.external = $hx_exports.external || {};
$hx_exports.openfl = $hx_exports.openfl || {};
$hx_exports.lime = $hx_exports.lime || {};
var $hxClasses = {},$estr = function() { return js_Boot.__string_rec(this,''); };

Microsoft site reports this explanation

“Strict mode is a way to introduce better error-checking into your code.When you use strict mode, you cannot, for example, use implicitly declared variables, or assign a value to a read-only property, or add a property to an object that is not extensible.”

Do you think this is related to the error I receive?
Thanks

Noone knows? Excluding IE and Edge would be a big problem.

What happens if you just remove the “use strict”; ?

Can you post your code and/or specify on what line does it error out?

Maybe you’re really trying to access/set a readonly property in your exposed function.

I’ve found this post on StackOverflow that might be related, and probably help.

In this other thread there is the solution to my problem :wink: