| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // ------------------------------------------------------------------- | 5 // ------------------------------------------------------------------- |
| 6 | 6 |
| 7 (function(global, utils) { | 7 (function(global, utils) { |
| 8 | 8 |
| 9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
| 10 | 10 |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 var holder = this; | 871 var holder = this; |
| 872 while (holder) { | 872 while (holder) { |
| 873 var formatted_stack_trace = | 873 var formatted_stack_trace = |
| 874 GET_PRIVATE(holder, formattedStackTraceSymbol); | 874 GET_PRIVATE(holder, formattedStackTraceSymbol); |
| 875 if (IS_UNDEFINED(formatted_stack_trace)) { | 875 if (IS_UNDEFINED(formatted_stack_trace)) { |
| 876 // No formatted stack trace available. | 876 // No formatted stack trace available. |
| 877 var stack_trace = GET_PRIVATE(holder, stackTraceSymbol); | 877 var stack_trace = GET_PRIVATE(holder, stackTraceSymbol); |
| 878 if (IS_UNDEFINED(stack_trace)) { | 878 if (IS_UNDEFINED(stack_trace)) { |
| 879 // Neither formatted nor structured stack trace available. | 879 // Neither formatted nor structured stack trace available. |
| 880 // Look further up the prototype chain. | 880 // Look further up the prototype chain. |
| 881 holder = %_GetPrototype(holder); | 881 holder = %object_get_prototype_of(holder); |
| 882 continue; | 882 continue; |
| 883 } | 883 } |
| 884 formatted_stack_trace = FormatStackTrace(holder, stack_trace); | 884 formatted_stack_trace = FormatStackTrace(holder, stack_trace); |
| 885 SET_PRIVATE(holder, stackTraceSymbol, UNDEFINED); | 885 SET_PRIVATE(holder, stackTraceSymbol, UNDEFINED); |
| 886 SET_PRIVATE(holder, formattedStackTraceSymbol, formatted_stack_trace); | 886 SET_PRIVATE(holder, formattedStackTraceSymbol, formatted_stack_trace); |
| 887 } | 887 } |
| 888 return formatted_stack_trace; | 888 return formatted_stack_trace; |
| 889 } | 889 } |
| 890 return UNDEFINED; | 890 return UNDEFINED; |
| 891 }; | 891 }; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 utils.Export(function(to) { | 1017 utils.Export(function(to) { |
| 1018 to.ErrorToString = ErrorToString; | 1018 to.ErrorToString = ErrorToString; |
| 1019 to.MakeError = MakeError; | 1019 to.MakeError = MakeError; |
| 1020 to.MakeRangeError = MakeRangeError; | 1020 to.MakeRangeError = MakeRangeError; |
| 1021 to.MakeSyntaxError = MakeSyntaxError; | 1021 to.MakeSyntaxError = MakeSyntaxError; |
| 1022 to.MakeTypeError = MakeTypeError; | 1022 to.MakeTypeError = MakeTypeError; |
| 1023 to.MakeURIError = MakeURIError; | 1023 to.MakeURIError = MakeURIError; |
| 1024 }); | 1024 }); |
| 1025 | 1025 |
| 1026 }); | 1026 }); |
| OLD | NEW |