File: PORTING

package info (click to toggle)
khtml 5.54.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,940 kB
  • sloc: cpp: 206,281; java: 4,060; ansic: 2,829; perl: 2,313; yacc: 1,497; python: 339; sh: 141; xml: 37; makefile: 7
file content (37 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Some porting notes for jscore work:

1) Some cases Null() or other garbage was used as the default in switch() where
it was returning Value().  Value() doesn't exist, we should return -null-
according to webcore.  This probably needs to be fixed.

2) Constructors for objects are probably quite broken.  Compare against webcore.

3) Lots of abort() were placed for functions and templates I couldn't find any
replacement for.

4) Replace this:
    Object err = Error::create(exec,TypeError);
    exec->setException(err);
    return err;
   with:
    throwError(exec, TypeError);

5) Replace getString() with ::getString()

6) Object::dynamicCast() (and others) are gone.  Use ->getObject() and friends
  and check for null instead of isValid().

7) .string() -> .domString()

8) double<->int conversions need to be fixed

9) ctx.sourceId() is gone

10) isA(x) ->  ->type() == x

11) DeclaredFunctionImp::setName is gone - what to do?

12)