def test_embind_3(self):
    self.emcc_args += ['--bind', '--post-js', 'post.js']
    create_test_file('post.js', '\n      function ready() {\n        try {\n          Module.compute(new Uint8Array([1,2,3]));\n        } catch(e) {\n          out(e);\n        }\n      }\n    ')
    src = '\n      #include <emscripten.h>\n      #include <emscripten/bind.h>\n      using namespace emscripten;\n      int compute(int array[]) {\n          return 0;\n      }\n      EMSCRIPTEN_BINDINGS(my_module) {\n          function("compute", &compute, allow_raw_pointers());\n      }\n      int main(int argc, char **argv) {\n          EM_ASM(ready());\n          return 0;\n      }\n    '
    self.do_run(src, 'UnboundTypeError: Cannot call compute due to unbound types: Pi')
def test_embind_3(self):
    self.emcc_args += ['--bind', '--post-js', 'post.js']
    create_test_file('post.js', '\n      function ready() {\n        try {\n          Module.compute(new Uint8Array([1,2,3]));\n        } catch(e) {\n          out(e);\n        }\n      }\n    ')
    src = '\n      #include <emscripten.h>\n      #include <emscripten/bind.h>\n      using namespace emscripten;\n      int compute(int array[]) {\n          return 0;\n      }\n      EMSCRIPTEN_BINDINGS(my_module) {\n          function("compute", &compute, allow_raw_pointers());\n      }\n      int main(int argc, char **argv) {\n          EM_ASM(ready());\n          return 0;\n      }\n    '
    self.do_run(src, 'UnboundTypeError: Cannot call compute due to unbound types: Pi')