X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/ErrorConstructor.cpp diff --git a/runtime/ErrorConstructor.cpp b/runtime/ErrorConstructor.cpp index 9acbc4c..30c4faa 100644 --- a/runtime/ErrorConstructor.cpp +++ b/runtime/ErrorConstructor.cpp @@ -31,7 +31,7 @@ namespace JSC { STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(ErrorConstructor); -const ClassInfo ErrorConstructor::s_info = { "Function", &Base::s_info, 0, 0, CREATE_METHOD_TABLE(ErrorConstructor) }; +const ClassInfo ErrorConstructor::s_info = { "Function", &Base::s_info, 0, CREATE_METHOD_TABLE(ErrorConstructor) }; ErrorConstructor::ErrorConstructor(VM& vm, Structure* structure) : InternalFunction(vm, structure) @@ -52,10 +52,7 @@ EncodedJSValue JSC_HOST_CALL Interpreter::constructWithErrorConstructor(ExecStat { JSValue message = exec->argumentCount() ? exec->argument(0) : jsUndefined(); Structure* errorStructure = asInternalFunction(exec->callee())->globalObject()->errorStructure(); - Vector stackTrace; - exec->vm().interpreter->getStackTrace(stackTrace, std::numeric_limits::max()); - stackTrace.remove(0); - return JSValue::encode(ErrorInstance::create(exec, errorStructure, message, stackTrace)); + return JSValue::encode(ErrorInstance::create(exec, errorStructure, message, nullptr, TypeNothing, false)); } ConstructType ErrorConstructor::getConstructData(JSCell*, ConstructData& constructData) @@ -68,10 +65,7 @@ EncodedJSValue JSC_HOST_CALL Interpreter::callErrorConstructor(ExecState* exec) { JSValue message = exec->argumentCount() ? exec->argument(0) : jsUndefined(); Structure* errorStructure = asInternalFunction(exec->callee())->globalObject()->errorStructure(); - Vector stackTrace; - exec->vm().interpreter->getStackTrace(stackTrace, std::numeric_limits::max()); - stackTrace.remove(0); - return JSValue::encode(ErrorInstance::create(exec, errorStructure, message, stackTrace)); + return JSValue::encode(ErrorInstance::create(exec, errorStructure, message, nullptr, TypeNothing, false)); } CallType ErrorConstructor::getCallData(JSCell*, CallData& callData)