Skip to content

Commit

Permalink
Fix recursion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed May 10, 2023
1 parent 7e1fce4 commit 871c141
Showing 1 changed file with 1 addition 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 @@ -237,7 +237,7 @@ impl JsObject {
// a recursive structure
// We can follow v8 & SpiderMonkey's lead and return a default value for the hint in this situation
// (see https://repl.it/repls/IvoryCircularCertification#index.js)
let recursion_limiter = RecursionLimiter::new(self);
let recursion_limiter = RecursionLimiter::new(self.as_ref());
if recursion_limiter.live {
// we're in a recursive object, bail
return Ok(match hint {
Expand Down

0 comments on commit 871c141

Please sign in to comment.