Skip to content

Commit

Permalink
Add entries(), values(), keys(), and JsSetIterator wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
lameferret committed Jul 6, 2022
1 parent 56a7374 commit 7aa86c1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boa_engine/src/object/jsobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl JsObject {
}

/// Checks if it is a `Set` object
///
///
/// # Panics
///
/// Panics if the object is currently mutably borrowed.
Expand Down
7 changes: 7 additions & 0 deletions boa_engine/src/object/jsset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ use boa_gc::{Finalize, Trace};

use crate::{
builtins::Set,
<<<<<<< HEAD
<<<<<<< HEAD
object::{JsFunction, JsObject, JsObjectType, JsSetIterator},
=======
object::{JsObject, JsObjectType},
>>>>>>> 5b5551f2b6 (Safe wrapper for `JsSet`)
=======
object::{JsFunction, JsObject, JsObjectType, JsSetIterator},
>>>>>>> 5adeddf912 (Add `entries()`, `values()`, `keys()`, and `JsSetIterator` wrapper)
Context, JsResult, JsValue,
};

Expand Down Expand Up @@ -139,6 +143,9 @@ impl JsSet {
}

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 5adeddf912 (Add `entries()`, `values()`, `keys()`, and `JsSetIterator` wrapper)
/// Returns a new iterator object that yields the values
/// for each element in the Set object in insertion order.
///
Expand Down
8 changes: 8 additions & 0 deletions boa_engine/src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ mod jsobject;
mod jsproxy;
mod jsset;
<<<<<<< HEAD
<<<<<<< HEAD
mod jsset_iterator;
=======
>>>>>>> 5b5551f2b6 (Safe wrapper for `JsSet`)
=======
mod jsset_iterator;
>>>>>>> 5adeddf912 (Add `entries()`, `values()`, `keys()`, and `JsSetIterator` wrapper)
mod jstypedarray;
mod operations;
mod property_map;
Expand All @@ -83,9 +87,13 @@ pub use jsmap_iterator::*;
pub use jsproxy::*;
pub use jsset::*;
<<<<<<< HEAD
<<<<<<< HEAD
pub use jsset_iterator::*;
=======
>>>>>>> 5b5551f2b6 (Safe wrapper for `JsSet`)
=======
pub use jsset_iterator::*;
>>>>>>> 5adeddf912 (Add `entries()`, `values()`, `keys()`, and `JsSetIterator` wrapper)
pub use jstypedarray::*;

pub(crate) trait JsObjectType:
Expand Down

0 comments on commit 7aa86c1

Please sign in to comment.