Skip to content

Commit

Permalink
chore(ecmascript): Unify heap data struct publication
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas committed Oct 29, 2023
1 parent b982dcc commit d98ec8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions nova_vm/src/ecmascript/types.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
mod language;
mod spec;

pub(crate) use language::BigIntHeapData;
pub(crate) use language::ObjectHeapData;
pub(crate) use language::StringHeapData;
pub(crate) use language::{BigIntHeapData, ObjectHeapData, StringHeapData};
pub use language::{Function, InternalMethods, Number, Object, PropertyKey, String, Value};
pub use spec::{Base, PropertyDescriptor, Reference, ReferencedName};

Expand Down
3 changes: 1 addition & 2 deletions nova_vm/src/ecmascript/types/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ pub use bigint::{BigInt, BigIntHeapData};
pub use function::Function;
pub use number::Number;
pub use object::{InternalMethods, Object, ObjectHeapData, PropertyKey, PropertyStorage};
pub(crate) use string::data::StringHeapData;
pub use string::String;
pub use string::{String, StringHeapData};
pub use value::Value;
2 changes: 1 addition & 1 deletion nova_vm/src/ecmascript/types/language/bigint.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub(crate) mod data;
mod data;

use super::value::{BIGINT_DISCRIMINANT, SMALL_BIGINT_DISCRIMINANT};
use crate::{heap::indexes::BigIntIndex, SmallInteger};
Expand Down
4 changes: 3 additions & 1 deletion nova_vm/src/ecmascript/types/language/string.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub(crate) mod data;
mod data;

use super::Value;
use crate::{
Expand All @@ -7,6 +7,8 @@ use crate::{
SmallString,
};

pub use data::StringHeapData;

/// 6.1.4 The String Type
/// https://tc39.es/ecma262/#sec-ecmascript-language-types-string-type
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
Expand Down

0 comments on commit d98ec8f

Please sign in to comment.