From 45f488e057a77cbd29156bc0b4029ae4bec73976 Mon Sep 17 00:00:00 2001 From: Ryan Lester Date: Mon, 3 Jul 2017 19:40:23 -0400 Subject: [PATCH] erase Module['onRuntimeInitializeFailed'] after runtime init success (#5357) --- src/postamble.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/postamble.js b/src/postamble.js index c1c5a86bf5754..817840644a361 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -256,6 +256,8 @@ function run(args) { } #endif + Module['onRuntimeInitializeFailed'] = undefined; + if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized'](); if (Module['_main'] && shouldRunNow) Module['callMain'](args);