diff --git a/src/binding.gyp b/src/binding.gyp index 4c5d2a0bc..8ab773ec3 100644 --- a/src/binding.gyp +++ b/src/binding.gyp @@ -205,9 +205,12 @@ }], ['OS == "emscripten"', { 'product_extension': 'node.js', + 'cflags_cc': [ + '-fwasm-exceptions' + ], 'link_settings': { 'ldflags': [ - '-fexceptions', + '-fwasm-exceptions', '--pre-js=