Changeset 13465 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Mar 23, 2006, 10:28:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r13015 r13465 3 3 * This file is part of the KDE libraries 4 4 * Copyright (C) 1999-2001 Harri Porten ([email protected]) 5 * Copyright (C) 2003 Apple Computer, Inc.5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 6 6 * 7 7 * This library is free software; you can redistribute it and/or … … 165 165 166 166 // ECMA 15.3.2 The Function Constructor 167 JSObject *FunctionObjectImp::construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber)167 JSObject* FunctionObjectImp::construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber) 168 168 { 169 169 UString p(""); … … 208 208 FunctionBodyNode *bodyNode = progNode.get(); 209 209 210 FunctionImp *fimp = new DeclaredFunctionImp(exec, Identifier::null(), bodyNode, scopeChain);210 FunctionImp* fimp = new DeclaredFunctionImp(exec, functionName, bodyNode, scopeChain); 211 211 212 212 // parse parameter list. throw syntax error on illegal identifiers … … 251 251 252 252 // ECMA 15.3.2 The Function Constructor 253 JSObject *FunctionObjectImp::construct(ExecState *exec, const List &args)254 { 255 return FunctionObjectImp::construct(exec, args, UString(), 0);253 JSObject* FunctionObjectImp::construct(ExecState* exec, const List& args) 254 { 255 return construct(exec, args, "anonymous", UString(), 0); 256 256 } 257 257 258 258 // ECMA 15.3.1 The Function Constructor Called as a Function 259 JSValue *FunctionObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)260 { 261 return construct(exec, args);262 } 259 JSValue* FunctionObjectImp::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List &args) 260 { 261 return construct(exec, args); 262 }
Note:
See TracChangeset
for help on using the changeset viewer.