This commit is contained in:
Mike Andrews 2025-06-20 15:37:06 -04:00 committed by GitHub
commit 73c822743f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ func storeArgs(args []any, argValsDst []Value, argRefsDst []ref) {
// It panics if v is not a JavaScript object.
func (v Value) Length() int {
if vType := v.Type(); !vType.isObject() {
panic(&ValueError{"Value.SetIndex", vType})
panic(&ValueError{"Value.Length", vType})
}
r := valueLength(v.ref)
runtime.KeepAlive(v)