Changeset 31318 in webkit for trunk/JavaScriptCore/kjs/dtoa.cpp


Ignore:
Timestamp:
Mar 26, 2008, 10:29:00 AM (17 years ago)
Author:
[email protected]
Message:

Rubber-stamped by Maciej.

An assertion was failing in function-toString-object-literals.html when parsing 1e-500.
The condition existed before, and got uncovered by turning compiled-out dtoa checks into
ASSERTs.

The assertion was verifying that the caller wasn't constructing a Bigint from 0.
This might have had some reason behind it originally, but I couldn't find any,
and this doesn't look like a reasonable requirement.

  • kjs/dtoa.cpp: (d2b): Removed the assertion (two copies in different code paths).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/dtoa.cpp

    r31289 r31318  
    10891089            b->wds = (x[1] = z) ? 2 : 1;
    10901090    } else {
    1091         ASSERT(z);
    10921091        k = lo0bits(&z);
    10931092        x[0] = z;
     
    11211120        }
    11221121    } else {
    1123         ASSERT(z);
    11241122        k = lo0bits(&z);
    11251123        if (k >= 16) {
Note: See TracChangeset for help on using the changeset viewer.