Skip to content

Commit

Permalink
Rename ASYNC_GENERATOR_OBJECT_LOCAL_INDEX to ASYNC_GENERATOR_OBJECT_R…
Browse files Browse the repository at this point in the history
…EGISTER_INDEX
  • Loading branch information
HalidOdat committed Dec 20, 2023
1 parent a5628f3 commit 8d41a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/engine/src/vm/call_frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl CallFrame {
pub(crate) const FUNCTION_PROLOGUE: u32 = 2;
pub(crate) const THIS_POSITION: u32 = 2;
pub(crate) const FUNCTION_POSITION: u32 = 1;
pub(crate) const ASYNC_GENERATOR_OBJECT_LOCAL_INDEX: u32 = 0;
pub(crate) const ASYNC_GENERATOR_OBJECT_REGISTER_INDEX: u32 = 0;

/// Creates a new `CallFrame` with the provided `CodeBlock`.
pub(crate) fn new(
Expand Down Expand Up @@ -216,7 +216,7 @@ impl CallFrame {
return None;
}

self.local(Self::ASYNC_GENERATOR_OBJECT_LOCAL_INDEX, stack)
self.local(Self::ASYNC_GENERATOR_OBJECT_REGISTER_INDEX, stack)
.as_object()
.cloned()
}
Expand Down

0 comments on commit 8d41a22

Please sign in to comment.