Skip to content

Commit

Permalink
fix: add emscripten memory image as binary suffix
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
0u812 committed Nov 1, 2014
1 parent 461571e commit f6b2b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit f6b2b56

Please sign in to comment.