Bug 1052042 - Make AutoJSAPI MOZ_STACK_CLASS. r=billm

We're about to give AutoEntryScript (a subclass) a non-virtual destructor, which
is safe so long as these things are only stack-allocated.
This commit is contained in:
Bobby Holley 2014-08-13 15:36:43 -07:00
parent acdd837d73
commit 8c4bd13859

View File

@ -122,7 +122,7 @@ private:
* fail. This prevents system code from accidentally triggering script
* execution at inopportune moments via surreptitious getters and proxies.
*/
class AutoJSAPI {
class MOZ_STACK_CLASS AutoJSAPI {
public:
// Trivial constructor. One of the Init functions must be called before
// accessing the JSContext through cx().