Handling Javascript Exhaustion

ISC License

Copyright © 2018, Michael FIG <michael+caja@fig.org>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

The following buttons trigger deep recursion and an infinite loop. Both of these conditions should rapidly be detected by the (eventually, automatically-injected) calls to api.throwIfExpired() and trigger an expected global error event.

If the code does anything except display an "As expected..." alert box, that is a problem with the framework, probably the browser integration. Please check the Javascript console and report it to me.


Last modified: Tue Oct 30 11:28:51 CST 2018