SMJS: Better handle when the C code tries to call a badly defined method
commitec1ab9fbe92cf308ce5cca7425691df04fe257ba
authorMiciah Dashiel Butler Masters <miciah@myrealbox.com>
Sat, 10 Jun 2006 18:09:31 +0000 (10 18:09 +0000)
committerMiciah Dashiel Butler Masters <miciah@FroodyComp.localdomain>
Sat, 10 Jun 2006 18:11:37 +0000 (10 18:11 +0000)
tree465659992d0cb907768d0720a1caeed2ac3b26dd
parent355cbebaad095a26b84f7e2f59689821ad68b75e
SMJS: Better handle when the C code tries to call a badly defined method

Before, when one assigned a value other than a function to
elinks.preformat_html, elinks.goto_url_hook, or elinks.follow_url_hook,
an assertion failure was triggered (and probably worse happened in
non-DEBUG builds). Now just fail silently.
src/scripting/smjs/elinks_object.c