Changeset 60117 in webkit for trunk/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- May 24, 2010, 8:04:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r60105 r60117 29 29 #include "CommonIdentifiers.h" 30 30 #include "CallFrame.h" 31 #include "ExceptionHelpers.h" 31 32 #include "FunctionPrototype.h" 32 33 #include "JSGlobalObject.h" … … 41 42 42 43 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 } 43 52 44 53 ASSERT_CLASS_FITS_IN_CELL(JSFunction);
Note:
See TracChangeset
for help on using the changeset viewer.