Changeset 60105 in webkit for trunk/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- May 24, 2010, 5:44:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r60075 r60105 29 29 #include "CommonIdentifiers.h" 30 30 #include "CallFrame.h" 31 #include "ExceptionHelpers.h"32 31 #include "FunctionPrototype.h" 33 32 #include "JSGlobalObject.h" … … 42 41 43 42 namespace JSC { 44 45 JSValue JSC_HOST_CALL callHostFunctionAsConstructor(ExecState* exec, JSObject* constructor, JSValue, const ArgList&)46 {47 CodeBlock* codeBlock = exec->callerFrame()->codeBlock();48 unsigned vPCIndex = codeBlock->bytecodeOffset(exec, exec->returnPC());49 exec->setException(createNotAConstructorError(exec, constructor, vPCIndex, codeBlock));50 return JSValue();51 }52 43 53 44 ASSERT_CLASS_FITS_IN_CELL(JSFunction);
Note:
See TracChangeset
for help on using the changeset viewer.