Changeset 1623 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Jul 21, 2002, 10:38:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r1371 r1623 2 2 /* 3 3 * This file is part of the KDE libraries 4 * Copyright (C) 1999-200 1Harri Porten ([email protected])4 * Copyright (C) 1999-2002 Harri Porten ([email protected]) 5 5 * Copyright (C) 2001 Peter Kelly ([email protected]) 6 6 * … … 837 837 838 838 // Constructors (Object, Array, etc.) 839 840 ObjectObjectImp *objectObj = new ObjectObjectImp(globExec,objProto,funcProto); 841 b_Object = Object(objectObj); 842 FunctionObjectImp *funcObj = new FunctionObjectImp(globExec,funcProto); 843 b_Function = Object(funcObj); 844 ArrayObjectImp *arrayObj = new ArrayObjectImp(globExec,funcProto,arrayProto); 845 b_Array = Object(arrayObj); 846 StringObjectImp *stringObj = new StringObjectImp(globExec,funcProto,stringProto); 847 b_String = Object(stringObj); 848 BooleanObjectImp *booleanObj = new BooleanObjectImp(globExec,funcProto,booleanProto); 849 b_Boolean = Object(booleanObj); 850 NumberObjectImp *numberObj = new NumberObjectImp(globExec,funcProto,numberProto); 851 b_Number = Object(numberObj); 852 DateObjectImp *dateObj = new DateObjectImp(globExec,funcProto,dateProto); 853 b_Date = Object(dateObj); 854 RegExpObjectImp *regexpObj = new RegExpObjectImp(globExec,regexpProto,funcProto); 855 b_RegExp = Object(regexpObj); 856 ErrorObjectImp *errorObj = new ErrorObjectImp(globExec,funcProto,errorProto); 857 b_Error = Object(errorObj); 839 b_Object = Object(new ObjectObjectImp(globExec, objProto, funcProto)); 840 b_Function = Object(new FunctionObjectImp(globExec, funcProto)); 841 b_Array = Object(new ArrayObjectImp(globExec, funcProto, arrayProto)); 842 b_String = Object(new StringObjectImp(globExec, funcProto, stringProto)); 843 b_Boolean = Object(new BooleanObjectImp(globExec, funcProto, booleanProto)); 844 b_Number = Object(new NumberObjectImp(globExec, funcProto, numberProto)); 845 b_Date = Object(new DateObjectImp(globExec, funcProto, dateProto)); 846 b_RegExp = Object(new RegExpObjectImp(globExec, funcProto, regexpProto)); 847 b_Error = Object(new ErrorObjectImp(globExec, funcProto, errorProto)); 858 848 859 849 // Error object prototypes … … 1017 1007 } 1018 1008 1019 // no program node means a syntax occurred1009 // no program node means a syntax error occurred 1020 1010 if (!progNode) { 1021 1011 Object err = Error::create(globExec,SyntaxError,errMsg.ascii(),errLine);
Note:
See TracChangeset
for help on using the changeset viewer.