diff --git a/mozilla/js/js2/jstypes.h b/mozilla/js/js2/jstypes.h index 66de7c3814e..69408503a43 100644 --- a/mozilla/js/js2/jstypes.h +++ b/mozilla/js/js2/jstypes.h @@ -254,6 +254,11 @@ namespace JSTypes { if (prototype) setPrototype(prototype); } + + JSScope* getParent() + { + return mParent; + } bool isDefined(const String& name) { diff --git a/mozilla/js2/src/jstypes.h b/mozilla/js2/src/jstypes.h index 66de7c3814e..69408503a43 100644 --- a/mozilla/js2/src/jstypes.h +++ b/mozilla/js2/src/jstypes.h @@ -254,6 +254,11 @@ namespace JSTypes { if (prototype) setPrototype(prototype); } + + JSScope* getParent() + { + return mParent; + } bool isDefined(const String& name) {