Skip to content

Commit 704502f

Browse files
committed
temporary workaround
1 parent 139d545 commit 704502f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/parseTools.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function preprocess(text, filenameHint) {
4343
if (line[2] == 'f') { // if
4444
var parts = line.split(' ');
4545
var after = parts.slice(1).join(' ');
46+
// FIXME: temporary workaround for embind preprocessing issue that will be fixed by https://github.com/kripken/emscripten/pull/7653
47+
if (after === 'NO_DYNAMIC_EXECUTION') {
48+
after = 'DYNAMIC_EXECUTION == 0';
49+
}
4650
var truthy = !!eval(after);
4751
showStack.push(truthy);
4852
} else if (line[2] == 'n') { // include

0 commit comments

Comments
 (0)