Bug 1251529: Provide default constructor for ShellAllocationMetadataBuilder. r=orange
authorJim Blandy <jimb@mozilla.com>
Mon, 04 Apr 2016 20:35:28 -0700
changeset 347728 4ebc3275aa3d5b9d7dc222864b5a29a24582c9eb
parent 347727 973bbaa2be7bae42ae7d96dee962fbcfb7ee65b3
child 347729 e02a9b1b4931191f2fccc397e75ae8c28ef47460
push id14653
push userolivier@olivieryiptong.com
push dateTue, 05 Apr 2016 19:21:01 +0000
reviewersorange
bugs1251529
milestone48.0a1
Bug 1251529: Provide default constructor for ShellAllocationMetadataBuilder. r=orange
js/src/builtin/TestingFunctions.cpp
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -1686,16 +1686,18 @@ DisplayName(JSContext* cx, unsigned argc
     JSFunction* fun = &args[0].toObject().as<JSFunction>();
     JSString* str = fun->displayAtom();
     args.rval().setString(str ? str : cx->runtime()->emptyString);
     return true;
 }
 
 class ShellAllocationMetadataBuilder : public AllocationMetadataBuilder {
   public:
+    ShellAllocationMetadataBuilder() : AllocationMetadataBuilder() { }
+
     virtual JSObject* build(JSContext *cx, HandleObject,
                             AutoEnterOOMUnsafeRegion& oomUnsafe) const override;
 
     static const ShellAllocationMetadataBuilder metadataBuilder;
 };
 
 JSObject*
 ShellAllocationMetadataBuilder::build(JSContext* cx, HandleObject,