diff --git a/static/compiler.js b/static/compiler.js index 6cb8f332..036a930a 100644 --- a/static/compiler.js +++ b/static/compiler.js @@ -563,7 +563,7 @@ define(function (require) { var cacheName = "asm/" + opcode; var cached = Cache.get(cacheName); if (cached) { - return cached; + return Promise.resolve(cached); } var promise = new Promise(function (resolve, reject) { $.ajax({