Skip to content

Commit

Permalink
avm2: Fix performance regression
Browse files Browse the repository at this point in the history
A `ScriptObject` was being allocated on every `call_method` call
  • Loading branch information
Lord-McSweeney authored and adrian17 committed Jun 7, 2024
1 parent 7e0f2de commit 6e53f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ pub trait TObject<'gc>: 'gc + Collect + Debug + Into<Object<'gc>> + Clone + Copy
class,
arguments,
activation,
ScriptObject::custom_object(activation.context.gc_context, None, None), // Callee deliberately invalid.
self.into(), // Callee deliberately invalid.
);
}

Expand Down

0 comments on commit 6e53f98

Please sign in to comment.