[webkit-changes] [WebKit/WebKit] 75d98d: [JSC] Fix Array.fromAsync calls constructor twice

SUZUKI Sosuke noreply at github.com
Wed Mar 27 14:07:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 75d98d9e2d7400fc08a4687bbe0ce320ab0049aa
      https://github.com/WebKit/WebKit/commit/75d98d9e2d7400fc08a4687bbe0ce320ab0049aa
  Author: Sosuke Suzuki <sosuke.suzuki at dr-ubie.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/builtins/ArrayConstructor.js

  Log Message:
  -----------
  [JSC] Fix Array.fromAsync calls constructor twice
https://bugs.webkit.org/show_bug.cgi?id=271703

Reviewed by Yusuke Suzuki.

This patch fixes a bug where calls like Array.fromAsync.call(MyArray, { length: 2, 0: 1, 1: 2 }); would cause MyArray constructor to be called twice.

* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/builtins/ArrayConstructor.js:
(fromAsync):

Canonical link: https://commits.webkit.org/276752@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list