Skip to content
This repository has been archived by the owner on Nov 3, 2017. It is now read-only.

Discussion: ES5 environment "strict mode" #23

Open
cousquer opened this issue Feb 24, 2013 · 3 comments
Open

Discussion: ES5 environment "strict mode" #23

cousquer opened this issue Feb 24, 2013 · 3 comments
Labels

Comments

@cousquer
Copy link
Member

Redefinning variable is disallowed in strict mode. Be sure to be in fully compliant ES5 environment.
The "use strict" directive is only recognized at the top of a script or function, which makes it sensitive to script concatenation.
So which way to go?

  • Never concatenate strict files an nonstrict files.
  • Concatenate files by wrapping their bodies in immediatly invocked function expressions
    //file01.js
    (function() {
    "use strict";
    function foo() {
    // ...
    }
    // ...
    })();

//file02.js no strictmode
(function() {
function foo() {
var arg = [];
// ...
}
// ...
})();

@cousquer
Copy link
Member Author

Can't label it "Question".

@mmoayyed
Copy link
Member

The build should now be es5 compatible. There are certain modules however that are now, and for those we at the moment force the build to continue automatically.

@ChristianMurphy
Copy link
Member

Hey there! 👋

Thanks for opening a ticket with uMobile app phonegap. 👍 🙇‍♂️
The uMobile app phonegap is no longer being actively maintained. ⛔
For alternatives we recommend the uMobile Android App and the uMobile iOS app. ✅

Thanks again for contributing to the uMobile app phonegap! ✨

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants