Skip to content

HTML5: Module.cwrap is not a function #2

@Kaiqgs

Description

@Kaiqgs
Image

I'm getting this error I believe due to legacy not enabled
Image

My current workaround, is to use "engine_template.html" overrides

			if (!Module.cwrap) {
				console.warn('Module.cwrap is not available. Adding fallback implementation.');
				Module.cwrap = function(name, returnType, argTypes) {
					return function() {
						console.error('cwrap function called but not properly implemented. Function:', name, returnType, argTypes);
						return null;
					};
				};
			}

This is continuation of issue dapetcu21#32

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions