diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 149033d4375..a6563ff26c1 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -227,7 +227,7 @@ def configure(env): env.Append(LINKFLAGS=["-s", "OFFSCREEN_FRAMEBUFFER=1"]) # callMain for manual start. - env.Append(LINKFLAGS=["-s", "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain']"]) + env.Append(LINKFLAGS=["-s", "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain','cwrap']"]) # Add code that allow exiting runtime. env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"])