Skip to content

joo_global_object is undefined when bundled in strict mode #699

Closed
@copy

Description

@copy

jsoo uses this compilation scheme to detect the global object:

(function(joo_global_object)
   {"use strict";
       console.log(joo_global_object);
       // ...
   }
  (function(){return this}()));

This fails when the generated JavaScript is bundled together with other JavaScript files that have a global "use strict"; stanza, as this doesn't become the global object in strict mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions