Bug 1251529: Provide default constructor for ShellAllocationMetadataBuilder. r=orange
authorJim Blandy <jimb@mozilla.com>
Mon, 04 Apr 2016 20:35:28 -0700
changeset 315466 4ebc3275aa3d5b9d7dc222864b5a29a24582c9eb
parent 315465 973bbaa2be7bae42ae7d96dee962fbcfb7ee65b3
child 315467 e02a9b1b4931191f2fccc397e75ae8c28ef47460
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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,