Skip to content

Commit

Permalink
Speed up getting SharedArray items out
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Aug 3, 2023
1 parent 447b159 commit 76e37db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/data/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (s wrappedSharedArray) deepFreeze(rt *goja.Runtime, val goja.Value) error {
if o == nil {
return nil
}
for _, key := range o.Keys() {
for _, key := range o.Prototype().Keys() {
prop := o.Get(key)
if prop != nil {
// isFrozen returns true for all non objects so it we don't need to check that
Expand Down

0 comments on commit 76e37db

Please sign in to comment.