Skip to content
Open
8 changes: 2 additions & 6 deletions core/engine/src/builtins/iterable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ impl IteratorRecord {
/// - [ECMA reference][spec]
///
/// [spec]: https://tc39.es/ecma262/#sec-iteratorstepvalue
pub(crate) fn step_value(&mut self, context: &mut Context) -> JsResult<Option<JsValue>> {
pub fn step_value(&mut self, context: &mut Context) -> JsResult<Option<JsValue>> {
// 1. Let result be ? IteratorStep(iteratorRecord).
if self.step(context)? {
// 2. If result is done, then
Expand All @@ -601,11 +601,7 @@ impl IteratorRecord {
/// - [ECMA reference][spec]
///
/// [spec]: https://tc39.es/ecma262/#sec-iteratorclose
pub(crate) fn close(
&self,
completion: JsResult<JsValue>,
context: &mut Context,
) -> JsResult<JsValue> {
pub fn close(&self, completion: JsResult<JsValue>, context: &mut Context) -> JsResult<JsValue> {
// 1. Assert: Type(iteratorRecord.[[Iterator]]) is Object.

// 2. Let iterator be iteratorRecord.[[Iterator]].
Expand Down
2 changes: 1 addition & 1 deletion core/engine/src/object/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ impl JsObject {
/// - [ECMAScript reference][spec]
///
/// [spec]: https://tc39.es/ecma262/#sec-getmethod
pub(crate) fn get_method<K>(&self, key: K, context: &mut Context) -> JsResult<Option<Self>>
pub fn get_method<K>(&self, key: K, context: &mut Context) -> JsResult<Option<Self>>
where
K: Into<PropertyKey>,
{
Expand Down
Loading
Loading