mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
add exceptions to js and make invalid session access fatal + exception for a try/catch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5443 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6f78befac9
commit
5f86cb4606
4 files changed
+19
-6
No files matched your search
@@ -145,6 +145,7 @@ struct js_session {
|
||||
|
||||
JSBool DEFAULT_SET_PROPERTY(JSContext * cx, JSObject *obj, jsval id, jsval *vp)
|
||||
{
|
||||
eval_some_js("~throw new Error(\"this property cannot be changed!\");", cx, obj, vp);
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user