GNOME Bugzilla – Bug 642854
jsapi-util: Remove usage of deprecated JS_GetScopeChain
Last modified: 2011-05-04 18:48:55 UTC
Upstream bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=631135 https://bugzilla.mozilla.org/show_bug.cgi?id=632064
Created attachment 181438 [details] [review] jsapi-util: Remove usage of deprecated JS_GetScopeChain JS_GetScopeChain is on the fast-track to being deprecated, so replace this with the debugger API JS_GetFrameScopeChain. See upstream bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=631135 https://bugzilla.mozilla.org/show_bug.cgi?id=632064
The patch looks OK to me (without verifying the docs and usage of those debug APIs), but maybe gjs_explain_scope() should just be removed, since it's more or less a debugging API itself. I was using it to figure out some weird problems related to having multiple contexts and global objects.
*** Bug 642762 has been marked as a duplicate of this bug. ***
An equivalent fix for this landed in commit 333c484c .