-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Open
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
Version
v24.1.0
Platform
It seems to be the expected design of V8 that an OOM exception occurs when executing the statement `Array.prototype.sort.call({length: Infinity})` due to the array length issue. The program crashes. Should this be changed to gracefully exit after throwing an error?
Subsystem
No response
What steps will reproduce the bug?
execute expression Array.prototype.sort.call({length: Infinity})
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
throw a RangeError,not crash
What do you see instead?
Additional information
No response
Metadata
Metadata
Assignees
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.