Ignore:
Timestamp:
May 21, 2008, 6:20:45 PM (17 years ago)
Author:
[email protected]
Message:

Merge squirrelfish branch into trunk.

File:
1 edited

Legend:

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

    r31270 r33979  
    2424#include "JSGlobalObject.h"
    2525#include "bool_object.h"
     26#include "JSNotAnObject.h"
    2627#include "number_object.h"
    2728#include "object.h"
     
    3334    ASSERT(isImmediate(v));
    3435    if (v == jsNull())
    35         return throwError(exec, TypeError, "Null value");
     36        return new JSNotAnObject(throwError(exec, TypeError, "Null value"));
    3637    else if (v == jsUndefined())
    37         return throwError(exec, TypeError, "Undefined value");
     38        return new JSNotAnObject(throwError(exec, TypeError, "Undefined value"));
    3839    else if (isBoolean(v)) {
    3940        List args;
     
    6364}
    6465
    65 JSType JSImmediate::type(const JSValue *v)
    66 {
    67     ASSERT(isImmediate(v));
    68    
    69     uintptr_t tag = getTag(v);
    70     if (tag == UndefinedType)
    71         return v == jsUndefined() ? UndefinedType : NullType;
    72     return static_cast<JSType>(tag);
    73 }
    74 
    7566} // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.