<commit_before>--- Makefile.orig	2015-09-09 14:30:05.000000000 +0300
+++ Makefile	2015-09-09 14:36:59.000000000 +0300
@@ -208,6 +208,35 @@
 debug-shared: CXXFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CXXFLAGS))
 debug-shared: shared

+js: static
+	emcc lib/libsass.a -o lib/libsass.js \
+ 		-O3 \
+		-s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
+		-s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \
+		-s DISABLE_EXCEPTION_CATCHING=0 \
+		-s ALLOW_MEMORY_GROWTH=1 \
+		-s EMTERPRETIFY=1 \
+		-s EMTERPRETIFY_ASYNC=1 \
+		-s EMTERPRETIFY_WHITELIST=@../emterpreter_whitelist.json \
+		--memory-init-file 0
+
+js-debug: static
+	emcc lib/libsass.a -o lib/libsass.js \
+		-O0 \
+		-s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
+		-s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \<commit_msg>fix(emscripten): disable WASM to make 1.38.12 work - #85<commit_after>--- Makefile.orig	2015-09-09 14:30:05.000000000 +0300
+++ Makefile	2015-09-09 14:36:59.000000000 +0300
@@ -208,6 +208,37 @@
 debug-shared: CXXFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CXXFLAGS))
 debug-shared: shared

+js: static
+	emcc lib/libsass.a -o lib/libsass.js \
+ 		-O3 \
+		-s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
+		-s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \
+		-s WASM=0 \
+		-s DISABLE_EXCEPTION_CATCHING=0 \
+		-s ALLOW_MEMORY_GROWTH=1 \
+		-s EMTERPRETIFY=1 \
+		-s EMTERPRETIFY_ASYNC=1 \
+		-s EMTERPRETIFY_WHITELIST=@../emterpreter_whitelist.json \
+		--memory-init-file 0
+
+js-debug: static
+	emcc lib/libsass.a -o lib/libsass.js \
+		-O0 \
+		-s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
+		-s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \
+		-s WASM=0 \
{'fraction_non_alphanumeric': 0.17191818684355997, 'fraction_numerical': 0.08347153123272526, 'mean_word_length': 3.9453551912568305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '774313', 'n_tokens_mistral': 949, 'n_tokens_neox': 834, 'n_words': 119}