Changeset 29817 in webkit for trunk/JavaScriptCore/kjs/function_object.cpp
- Timestamp:
- Jan 27, 2008, 12:54:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function_object.cpp
r29588 r29817 1 // -*- c-basic-offset: 2 -*-2 1 /* 3 * This file is part of the KDE libraries4 2 * Copyright (C) 1999-2001 Harri Porten ([email protected]) 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 4 * 7 5 * This library is free software; you can redistribute it and/or … … 79 77 } 80 78 81 if (thisObj->inherits(&InternalFunctionImp::info) && !static_cast<InternalFunctionImp*>(thisObj)->functionName().isNull()) 82 return jsString("\nfunction " + static_cast<InternalFunctionImp*>(thisObj)->functionName().ustring() + "() {\n [native code]\n}\n"); 83 84 return jsString("[function]"); 79 return jsString("function " + static_cast<InternalFunctionImp*>(thisObj)->functionName().ustring() + "() {\n [native code]\n}"); 85 80 } 86 81 … … 137 132 138 133 FunctionObjectImp::FunctionObjectImp(ExecState* exec, FunctionPrototype* functionPrototype) 139 : InternalFunctionImp(functionPrototype )134 : InternalFunctionImp(functionPrototype, functionPrototype->classInfo()->className) 140 135 { 141 136 putDirect(exec->propertyNames().prototype, functionPrototype, DontEnum | DontDelete | ReadOnly);
Note:
See TracChangeset
for help on using the changeset viewer.