Warning, /frameworks/khtml/src/ecma/PORTING is written in an unsupported language. File is not indexed.
0001 Some porting notes for jscore work: 0002 0003 1) Some cases Null() or other garbage was used as the default in switch() where 0004 it was returning Value(). Value() doesn't exist, we should return -null- 0005 according to webcore. This probably needs to be fixed. 0006 0007 2) Constructors for objects are probably quite broken. Compare against webcore. 0008 0009 3) Lots of abort() were placed for functions and templates I couldn't find any 0010 replacement for. 0011 0012 4) Replace this: 0013 Object err = Error::create(exec,TypeError); 0014 exec->setException(err); 0015 return err; 0016 with: 0017 throwError(exec, TypeError); 0018 0019 5) Replace getString() with ::getString() 0020 0021 6) Object::dynamicCast() (and others) are gone. Use ->getObject() and friends 0022 and check for null instead of isValid(). 0023 0024 7) .string() -> .domString() 0025 0026 8) double<->int conversions need to be fixed 0027 0028 9) ctx.sourceId() is gone 0029 0030 10) isA(x) -> ->type() == x 0031 0032 11) DeclaredFunctionImp::setName is gone - what to do? 0033 0034 12) 0035 0036 0037