Changeset 30871 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
- Timestamp:
- Mar 7, 2008, 11:46:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r30534 r30871 228 228 d()->URIErrorConstructor = 0; 229 229 230 d()->evalFunction = 0; 231 230 232 ExecState* exec = &d()->globalExec; 231 233 … … 316 318 // Set global functions. 317 319 318 putDirectFunction(new PrototypeFunction(exec, d()->functionPrototype, 1, "eval", globalFuncEval), DontEnum); 320 d()->evalFunction = new PrototypeReflexiveFunction(exec, d()->functionPrototype, 1, exec->propertyNames().eval, globalFuncEval); 321 putDirectFunction(d()->evalFunction, DontEnum); 319 322 putDirectFunction(new PrototypeFunction(exec, d()->functionPrototype, 2, "parseInt", globalFuncParseInt), DontEnum); 320 323 putDirectFunction(new PrototypeFunction(exec, d()->functionPrototype, 1, "parseFloat", globalFuncParseFloat), DontEnum); … … 418 421 builtins._internal->URIErrorConstructor = d()->URIErrorConstructor; 419 422 423 builtins._internal->evalFunction = d()->evalFunction; 424 420 425 builtins._internal->objectPrototype = d()->objectPrototype; 421 426 builtins._internal->functionPrototype = d()->functionPrototype; … … 455 460 d()->typeErrorConstructor = builtins._internal->typeErrorConstructor; 456 461 d()->URIErrorConstructor = builtins._internal->URIErrorConstructor; 462 463 d()->evalFunction = builtins._internal->evalFunction; 457 464 458 465 d()->objectPrototype = builtins._internal->objectPrototype; … … 495 502 markIfNeeded(d()->URIErrorConstructor); 496 503 504 markIfNeeded(d()->evalFunction); 505 497 506 markIfNeeded(d()->objectPrototype); 498 507 markIfNeeded(d()->functionPrototype);
Note:
See TracChangeset
for help on using the changeset viewer.