Skip to content

Commit

Permalink
panic to match upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvinnix committed Oct 17, 2023
1 parent 7f26096 commit 61533f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func hasInstance(val *Object, v Value) bool {
}
}
} else {
val.runtime.typeErrorResult(true, "prototype is not an object")
panic(val.runtime.NewTypeError("prototype is not an object"))
}
}

Expand Down

0 comments on commit 61533f2

Please sign in to comment.