Changeset 12728 in webkit for trunk/JavaScriptCore/kjs/operations.cpp
- Timestamp:
- Feb 9, 2006, 10:42:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/operations.cpp
r12489 r12728 21 21 */ 22 22 23 24 #include "JSType.h" 23 25 #include "config.h" 24 26 #include "operations.h" 25 27 26 27 #include <stdio.h>28 28 #include <assert.h> 29 29 #include <math.h> 30 #include <stdio.h> 30 31 #include <stdlib.h> 31 32 … … 108 109 bool equal(ExecState *exec, JSValue *v1, JSValue *v2) 109 110 { 110 Type t1 = v1->type();111 Type t2 = v2->type();111 JSType t1 = v1->type(); 112 JSType t2 = v2->type(); 112 113 113 114 if (t1 != t2) { … … 162 163 bool strictEqual(ExecState *exec, JSValue *v1, JSValue *v2) 163 164 { 164 Type t1 = v1->type();165 Type t2 = v2->type();165 JSType t1 = v1->type(); 166 JSType t2 = v2->type(); 166 167 167 168 if (t1 != t2) … … 218 219 { 219 220 // exception for the Date exception in defaultValue() 220 Type preferred = oper == '+' ? UnspecifiedType : NumberType;221 JSType preferred = oper == '+' ? UnspecifiedType : NumberType; 221 222 JSValue *p1 = v1->toPrimitive(exec, preferred); 222 223 JSValue *p2 = v2->toPrimitive(exec, preferred);
Note:
See TracChangeset
for help on using the changeset viewer.