diff --git a/javascript/axolotl_post.js b/javascript/axolotl_post.js index 7902725..16294fb 100644 --- a/javascript/axolotl_post.js +++ b/javascript/axolotl_post.js @@ -42,7 +42,7 @@ function account_method(wrapped) { var message = Pointer_stringify( Module['_axolotl_account_last_error'](arguments[0]) ); - throw "AXOLOTL." + message; + throw new Error("AXOLOTL." + message); } return result; } @@ -121,7 +121,7 @@ function session_method(wrapped) { var message = Pointer_stringify( Module['_axolotl_session_last_error'](arguments[0]) ); - throw "AXOLOTL." + message; + throw new Error("AXOLOTL." + message); } return result; } diff --git a/javascript/build.py b/javascript/build.py old mode 100644 new mode 100755