Changeset 34580 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
- Timestamp:
- Jun 15, 2008, 8:02:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r34412 r34580 255 255 256 256 // Constructors 257 d()->objectConstructor = new Object ObjectImp(exec, d()->objectPrototype, d()->functionPrototype);258 d()->functionConstructor = new Function ObjectImp(exec, d()->functionPrototype);259 d()->arrayConstructor = new Array ObjectImp(exec, d()->functionPrototype, d()->arrayPrototype);260 d()->stringConstructor = new String ObjectImp(exec, d()->functionPrototype, d()->stringPrototype);261 d()->booleanConstructor = new Boolean ObjectImp(exec, d()->functionPrototype, d()->booleanPrototype);262 d()->numberConstructor = new Number ObjectImp(exec, d()->functionPrototype, d()->numberPrototype);263 d()->dateConstructor = new Date ObjectImp(exec, d()->functionPrototype, d()->datePrototype);264 d()->regExpConstructor = new RegExp ObjectImp(exec, d()->functionPrototype, d()->regExpPrototype);265 d()->errorConstructor = new Error ObjectImp(exec, d()->functionPrototype, d()->errorPrototype);266 267 d()->evalErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->evalErrorPrototype);268 d()->rangeErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->rangeErrorPrototype);269 d()->referenceErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->referenceErrorPrototype);270 d()->syntaxErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->syntaxErrorPrototype);271 d()->typeErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->typeErrorPrototype);272 d()->URIErrorConstructor = new NativeError Imp(exec, d()->functionPrototype, d()->URIErrorPrototype);257 d()->objectConstructor = new ObjectConstructor(exec, d()->objectPrototype, d()->functionPrototype); 258 d()->functionConstructor = new FunctionConstructor(exec, d()->functionPrototype); 259 d()->arrayConstructor = new ArrayConstructor(exec, d()->functionPrototype, d()->arrayPrototype); 260 d()->stringConstructor = new StringConstructor(exec, d()->functionPrototype, d()->stringPrototype); 261 d()->booleanConstructor = new BooleanConstructor(exec, d()->functionPrototype, d()->booleanPrototype); 262 d()->numberConstructor = new NumberConstructor(exec, d()->functionPrototype, d()->numberPrototype); 263 d()->dateConstructor = new DateConstructor(exec, d()->functionPrototype, d()->datePrototype); 264 d()->regExpConstructor = new RegExpConstructor(exec, d()->functionPrototype, d()->regExpPrototype); 265 d()->errorConstructor = new ErrorConstructor(exec, d()->functionPrototype, d()->errorPrototype); 266 267 d()->evalErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->evalErrorPrototype); 268 d()->rangeErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->rangeErrorPrototype); 269 d()->referenceErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->referenceErrorPrototype); 270 d()->syntaxErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->syntaxErrorPrototype); 271 d()->typeErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->typeErrorPrototype); 272 d()->URIErrorConstructor = new NativeErrorConstructor(exec, d()->functionPrototype, d()->URIErrorPrototype); 273 273 274 274 d()->functionPrototype->putDirect(exec->propertyNames().constructor, d()->functionConstructor, DontEnum); … … 312 312 // Set global values. 313 313 GlobalPropertyInfo staticGlobals[] = { 314 GlobalPropertyInfo("Math", new MathObject Imp(exec, d()->objectPrototype), DontEnum | DontDelete),314 GlobalPropertyInfo("Math", new MathObject(exec, d()->objectPrototype), DontEnum | DontDelete), 315 315 GlobalPropertyInfo("NaN", jsNaN(), DontEnum | DontDelete), 316 316 GlobalPropertyInfo("Infinity", jsNumber(Inf), DontEnum | DontDelete),
Note:
See TracChangeset
for help on using the changeset viewer.