Bug 898263 (part 13) - Move Native typedefs from jsprvtd.h to jsfun.h. r=jorendorff.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 25 Jul 2013 23:52:42 -0700
changeset 142135 917941988708db97f92964506cb26f611a77e17e
parent 142134 78836964671ff6a8b62af6e2c61afc8ab8566bbd
child 142136 96f5e26e3e25872eaff5155bbdf42a9d9a6a8849
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjorendorff
bugs898263
milestone26.0a1
Bug 898263 (part 13) - Move Native typedefs from jsprvtd.h to jsfun.h. r=jorendorff.
js/src/jsfun.h
js/src/jsprvtd.h
--- a/js/src/jsfun.h
+++ b/js/src/jsfun.h
@@ -11,17 +11,23 @@
  */
 
 #include "jsobj.h"
 #include "jsprvtd.h"
 #include "jsscript.h"
 
 #include "gc/Barrier.h"
 
-namespace js { class FunctionExtended; }
+namespace js {
+class FunctionExtended;
+
+typedef JSNative           Native;
+typedef JSParallelNative   ParallelNative;
+typedef JSThreadSafeNative ThreadSafeNative;
+}
 
 class JSFunction : public JSObject
 {
   public:
     static js::Class class_;
 
     enum Flags {
         INTERPRETED      = 0x0001,  /* function has a JSScript and environment. */
--- a/js/src/jsprvtd.h
+++ b/js/src/jsprvtd.h
@@ -10,15 +10,11 @@
 /*
  * JS private typename definitions.
  */
 
 #include "jsapi.h"
 
 namespace js {
 
-typedef JSNative             Native;
-typedef JSParallelNative     ParallelNative;
-typedef JSThreadSafeNative   ThreadSafeNative;
-
 } /* namespace js */
 
 #endif /* jsprvtd_h */