Skip to content

Commit

Permalink
array callsite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
katsaii committed Nov 9, 2024
1 parent 8225bc6 commit 2a74aab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,9 @@ function __catspeak_expr_call_method__() {
var callee_;
if (is_array(collection_)) {
callee_ = collection_[key_];
collection_ = undefined;
var shared_ = shared;
// since arrays cannot be used in with statements, let's use something else
collection_ = global.__catspeakGmlSelf ?? (shared_.self_ ?? shared_.globals);
} else if (__catspeak_is_withable(collection_)) {
callee_ = collection_[$ key_];
} else {
Expand Down

0 comments on commit 2a74aab

Please sign in to comment.