Check for JS_ReportAllocationOverflow before using it.
commit7067fc7af9fb3af98c09f5b98632c9ef90849b8e
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 8 Feb 2009 21:07:22 +0000 (8 23:07 +0200)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 8 Feb 2009 21:07:22 +0000 (8 23:07 +0200)
tree17fbcccc6598ebc746c06c6ac3abc5abe5e8621c
parent7941c7097a5834e54566b4fbcfd030be5fb70e16
Check for JS_ReportAllocationOverflow before using it.

Debian libmozjs-dev 1.9.0.4-2 has JS_ReportAllocationOverflow but
js-1.7.0 reportedly hasn't.  Check at configure time whether that
function is available.  If not, use JS_ReportOutOfMemory instead.

Reported by Witold Filipczyk.
configure.in
src/scripting/smjs/core.c