SMJS: Use JS_GetInstancePrivate where applicable.
commit59b8eeb7fb26e0e3eb6c802cf6e580ad964a7f44
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 27 May 2007 15:32:53 +0000 (27 18:32 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Mon, 2 Jul 2007 19:17:29 +0000 (2 22:17 +0300)
tree1153055b4da01f39751340ca379d4d0c82e94554
parent9bbd795787fe5ca790e251da7e15dd5976c7b68c
SMJS: Use JS_GetInstancePrivate where applicable.

This is a further precaution against reading a pointer from the wrong
type of object.  All of the JS_GetPrivate calls were already protected
with JS_InstanceOf checks if assertions are enabled, and many of them
also if assertions are not enabled.

[ Backported from commit 99f648b911d4199944314723d3f3e4f55b844b67 in
  ELinks 0.12.GIT.  --KON ]
src/ecmascript/spidermonkey/document.c
src/ecmascript/spidermonkey/form.c
src/ecmascript/spidermonkey/location.c
src/ecmascript/spidermonkey/unibar.c
src/ecmascript/spidermonkey/window.c
src/scripting/smjs/bookmarks.c
src/scripting/smjs/cache_object.c
src/scripting/smjs/keybinding.c
src/scripting/smjs/view_state_object.c