Provide default implementation of getConstants

Reviewed By: kathryngray

Differential Revision: D5453963

fbshipit-source-id: cf3d42a86c3262991697e9c1a23ab90b7f742afe
This commit is contained in:
Pieter De Baets 2017-08-01 03:29:12 -07:00 committed by Facebook Github Bot
parent 114b0801ce
commit c1c791fb59

View File

@ -165,7 +165,7 @@ public:
* Each entry in the map will be exported as a property to JS. The
* key is the property name, and the value can be anything.
*/
virtual auto getConstants() -> std::map<std::string, folly::dynamic> = 0;
virtual auto getConstants() -> std::map<std::string, folly::dynamic> { return {}; };
/**
* @return a list of methods this module exports to JS.