Lines Matching full:error
45 // If this object gets passed to an error constructor the error will
46 // get an accessor for .message that constructs a descriptive error
83 catch (e) { str = "#<error>"; }
121 throw new $Error("Not supported");
129 // Error
182 unable_to_parse: "Parse error",
188 error_loading_debugger: "Error loading debugger",
247 return MakeGenericError($Error, type, args);
593 // Error implementation
822 function FormatStackTrace(error, frames) {
825 lines.push(error.toString());
828 lines.push("<error: " + e + ">");
830 lines.push("<error>");
840 line = "<error: " + e + ">";
843 line = "<error>";
851 function FormatRawStackTrace(error, raw_stack) {
860 if (IS_FUNCTION($Error.prepareStackTrace)) {
861 return $Error.prepareStackTrace(error, frames);
863 return FormatStackTrace(error, frames);
868 // Store the error function in both the global object
872 // effects when overwriting the error functions from
877 // Configure the error function.
878 if (name == 'Error') {
879 // The prototype of the Error object must itself be an error.
880 // However, it can't be an instance of the Error object because
882 // special not-a-true-error-but-close-enough object.
885 %FunctionSetInstanceClassName(ErrorPrototype, 'Error');
888 %FunctionSetPrototype(f, new $Error());
890 %FunctionSetInstanceClassName(f, 'Error');
910 var stackTraceLimit = $Error.stackTraceLimit;
923 DefineError(function Error() { });
931 $Error.captureStackTrace = captureStackTrace;
933 // Setup extra properties of the Error.prototype object.
934 $Error.prototype.message = '';
936 %SetProperty($Error.prototype, 'toString', function toString() {