Changeset 260384 in webkit


Ignore:
Timestamp:
Apr 20, 2020 12:11:46 PM (4 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Skip test262 for non-safe-integer range BigIntConstructor
https://bugs.webkit.org/show_bug.cgi?id=210749

Reviewed by Keith Miller.

JSTests:

We skip test262 test/built-ins/BigInt/constructor-integer.js for now. As it is shown in old test262 JSTests/test262/expectations.yaml,
this test was failing before BigInt flag is enabled. And new BigInt patch changes error message while we are failing in the same way.
While we implemented BigInt, this test is based on spec change introduced[1], and we are not implementing this. So we mark it skipped,
as it is skipped before BigInt is enabled.

[1]: https://github.com/tc39/proposal-bigint/pull/138

  • test262/config.yaml:

Source/JavaScriptCore:

  • runtime/BigIntConstructor.cpp:

(JSC::callBigIntConstructor):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r260362 r260384  
     12020-04-20  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Skip test262 for non-safe-integer range BigIntConstructor
     4        https://bugs.webkit.org/show_bug.cgi?id=210749
     5
     6        Reviewed by Keith Miller.
     7
     8        We skip test262 test/built-ins/BigInt/constructor-integer.js for now. As it is shown in old test262 JSTests/test262/expectations.yaml,
     9        this test was failing before BigInt flag is enabled. And new BigInt patch changes error message while we are failing in the same way.
     10        While we implemented BigInt, this test is based on spec change introduced[1], and we are not implementing this. So we mark it skipped,
     11        as it is skipped before BigInt is enabled.
     12
     13        [1]: https://github.com/tc39/proposal-bigint/pull/138
     14
     15        * test262/config.yaml:
     16
    1172020-04-20  Keith Miller  <keith_miller@apple.com>
    218
  • trunk/JSTests/test262/config.yaml

    r260349 r260384  
    158158    - test/intl402/RelativeTimeFormat/prototype/format/en-us-numeric-auto.js
    159159    - test/intl402/RelativeTimeFormat/prototype/formatToParts/en-us-numeric-auto.js
     160
     161    # Spec is changed. https://github.com/tc39/proposal-bigint/pull/138
     162    - test/built-ins/BigInt/constructor-integer.js
  • trunk/Source/JavaScriptCore/ChangeLog

    r260377 r260384  
     12020-04-20  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Skip test262 for non-safe-integer range BigIntConstructor
     4        https://bugs.webkit.org/show_bug.cgi?id=210749
     5
     6        Reviewed by Keith Miller.
     7
     8        * runtime/BigIntConstructor.cpp:
     9        (JSC::callBigIntConstructor):
     10
    1112020-04-20  Keith Miller  <keith_miller@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/BigIntConstructor.cpp

    r260331 r260384  
    121121
    122122    if (primitive.isDouble()) {
     123        // FIXME: Accept larger integers than safe-integers.
     124        // https://bugs.webkit.org/show_bug.cgi?id=210755
    123125        double number = primitive.asDouble();
    124126        if (trunc(number) != number || std::abs(number) > maxSafeInteger())
Note: See TracChangeset for help on using the changeset viewer.