Ignore:
Timestamp:
Dec 17, 2004, 4:43:37 PM (20 years ago)
Author:
mjs
Message:

Reviewed by Kevin.

<rdar://problem/3926869> Opening caches window after running PLT causes crash

  • kjs/protected_values.cpp: (KJS::ProtectedValues::getProtectCount): Don't include simple numbers in the protected value table. (KJS::ProtectedValues::increaseProtectCount): Ditto. (KJS::ProtectedValues::decreaseProtectCount): Ditto.
File:
1 edited

Legend:

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

    r6549 r8249  
    2222
    2323#include "protected_values.h"
     24#include "simple_number.h"
    2425
    2526namespace KJS {
     
    3738        return 0;
    3839
     40    if (SimpleNumber::is(k))
     41      return 0;
     42
    3943    unsigned hash = computeHash(k);
    4044   
     
    5862{
    5963    assert(k);
     64
     65    if (SimpleNumber::is(k))
     66      return;
    6067
    6168    if (!_table)
     
    104111{
    105112    assert(k);
     113
     114    if (SimpleNumber::is(k))
     115      return;
    106116
    107117    unsigned hash = computeHash(k);
Note: See TracChangeset for help on using the changeset viewer.