Skip to content

Commit cdc4ea7

Browse files
mhorowitzfacebook-github-bot
authored andcommitted
Prevent internal header dependencies from sneaking into external JSI headers
Summary: hermes/hermes.h should not depend on VM internals. Remove GCExecTrace.h, and replace it with a forward declaration. To prevent this from happening in the future, refactor the hermes_api_library macro to remove include:include from exported_deps. Reviewed By: dulinriley Differential Revision: D21308540 fbshipit-source-id: 4685c247518162e9108f259d808a8b2c4f0b2044
1 parent e777784 commit cdc4ea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

API/hermes/hermes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <string>
1515

1616
#include <hermes/Public/RuntimeConfig.h>
17-
#include <hermes/VM/GCExecTrace.h>
1817
#include <jsi/jsi.h>
1918

2019
struct HermesTestHelper;
@@ -25,6 +24,7 @@ class raw_ostream;
2524

2625
namespace hermes {
2726
namespace vm {
27+
class GCExecTrace;
2828
struct MockedEnvironment;
2929
} // namespace vm
3030
} // namespace hermes

0 commit comments

Comments
 (0)