Skip to content

Generated output is incompatible with Jest (again) #149

@nex3

Description

@nex3

This is the same issue as protocolbuffers/protobuf#9152, which was notionally fixed in protocolbuffers/protobuf#9156. However, it seems that as of 3.20.3 the output is (still? again?) the Jest-incompatible

var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

For now I've rolled back to 3.11.2 which emits the compatible

var global = Function('return this')();

but this isn't a great long-term solution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagedIssue has been triaged

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions