hermes-engine
Advanced tools
@@ -17,11 +17,2 @@ /* | ||
| #ifdef HERMESVM_SERIALIZE | ||
| #include <vector> | ||
| namespace llvh { | ||
| class MemoryBuffer; | ||
| class raw_ostream; | ||
| } // namespace llvh | ||
| #endif | ||
| namespace hermes { | ||
@@ -37,10 +28,6 @@ namespace vm { | ||
| class PinnedHermesValue; | ||
| #ifdef HERMESVM_SERIALIZE | ||
| class Serializer; | ||
| class Deserializer; | ||
| #endif | ||
| // Parameters for Runtime initialisation. Check documentation in README.md | ||
| // constexpr indicates that the default value is constexpr. | ||
| #define RUNTIME_FIELDS_BASE(F) \ | ||
| #define RUNTIME_FIELDS(F) \ | ||
| /* Parameters to be passed on to the GC. */ \ | ||
@@ -136,29 +123,2 @@ F(HERMES_NON_CONSTEXPR, vm::GCConfig, GCConfig) \ | ||
| #ifdef HERMESVM_SERIALIZE | ||
| using ExternalPointersVectorFunction = std::vector<void *>(); | ||
| #define RUNTIME_FIELDS_SD(F) \ | ||
| /* Should serialize after initialization */ \ | ||
| F(HERMES_NON_CONSTEXPR, \ | ||
| std::shared_ptr<llvh::raw_ostream>, \ | ||
| SerializeAfterInitFile, \ | ||
| nullptr) \ | ||
| /* Should deserialize instead of initialization */ \ | ||
| F(HERMES_NON_CONSTEXPR, \ | ||
| std::shared_ptr<llvh::MemoryBuffer>, \ | ||
| DeserializeFile, \ | ||
| nullptr) \ | ||
| /* A function to get pointer values not visible to Runtime. e.g. \ | ||
| * function pointers defined in ConsoleHost*/ \ | ||
| F(constexpr, \ | ||
| ExternalPointersVectorFunction *, \ | ||
| ExternalPointersVectorCallBack, \ | ||
| nullptr) | ||
| #define RUNTIME_FIELDS(F) \ | ||
| RUNTIME_FIELDS_BASE(F) \ | ||
| RUNTIME_FIELDS_SD(F) | ||
| #else // ifndef HERMESVM_SERIALIZE | ||
| #define RUNTIME_FIELDS(F) RUNTIME_FIELDS_BASE(F) | ||
| #endif // HERMESVM_SERIALIZE | ||
| _HERMES_CTORCONFIG_STRUCT(RuntimeConfig, RUNTIME_FIELDS, {}); | ||
@@ -165,0 +125,0 @@ |
+1
-1
| { | ||
| "name": "hermes-engine", | ||
| "version": "0.9.0", | ||
| "version": "0.10.0", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "description": "A JavaScript engine optimized for running React Native on Android", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20576183
-0.04%8
14.29%