From abd52845d85b851772193d9acb56a117dd2c5fae Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 4 Apr 2017 16:46:33 -0500 Subject: [PATCH] Fix silly mistake --- static/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({