From f6b2b561c5d5e083cd204df9564024cac163b611 Mon Sep 17 00:00:00 2001 From: 0u812 <0u812@github.com> Date: Fri, 31 Oct 2014 17:03:51 -0700 Subject: [PATCH] fix: add emscripten memory image as binary suffix Emscripten generates binary files with a .mem suffix which are used to initialize static data. This change makes Karma treat such files as binary, and hence not preprocess them. --- lib/preprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preprocessor.js b/lib/preprocessor.js index 4e147187c..ae75fc452 100644 --- a/lib/preprocessor.js +++ b/lib/preprocessor.js @@ -23,7 +23,7 @@ var isBinary = Object.create(null); 'rlc', 'mdi', 'wdp', 'npx', 'wbmp', 'xif', 'webp', '3ds', 'ras', 'cmx', 'fh', 'ico', 'pcx', 'pic', 'pnm', 'pbm', 'pgm', 'ppm', 'rgb', 'tga', 'xbm', 'xpm', 'xwd', 'xz', 'zip', 'rar', 'tar', 'tbz2', 'tgz', 'txz', 'bz2', 'eot', 'ttf', 'woff', 'dat', 'nexe', 'pexe', 'epub', 'gz', 'mp3', 'ogg', - 'swf' + 'swf', 'mem' ].forEach(function(extension) { isBinary['.' + extension] = true; });