Base class for all object private data passed to JSC

Reviewed By: amnn

Differential Revision: D5761937

fbshipit-source-id: de88cf8b959fc855c3c0786f817bb6032491c819
This commit is contained in:
Michał Gregorczyk
2017-09-18 18:35:44 -07:00
committed by Facebook Github Bot
parent 8bf8b21613
commit d6c519bc96
12 changed files with 386 additions and 12 deletions

View File

@@ -14,6 +14,7 @@
#include <jschelpers/JSCHelpers.h>
#include <jschelpers/JavaScriptCore.h>
#include <jschelpers/Value.h>
#include <privatedata/PrivateDataBase.h>
#ifndef RN_EXPORT
#define RN_EXPORT __attribute__((visibility("default")))
@@ -50,7 +51,7 @@ struct JSCValueEncoder<folly::dynamic> {
}
};
class RN_EXPORT JSCExecutor : public JSExecutor {
class RN_EXPORT JSCExecutor : public JSExecutor, public PrivateDataBase {
public:
/**
* Must be invoked from thread this Executor will run on.