Brian Gianforcaro
2a65db7c12
LibJS: Implement Error.prototype.name setter ( #1776 )
...
The MDN example for creating a custom error type in javascript uses:
function CustomError(foo, message, fileName, lineNumber) {
var instance = new Error(message, fileName, lineNumber);
instance.name = 'CustomError';
instance.foo = foo;
Object.setPrototypeOf(instance, Object.getPrototypeOf(this));
return instance;
}
The name property on the Error prototype needs to be settable for
this to work properly.
2020-04-13 11:19:53 +02:00
..
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-08 20:01:42 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-07 08:41:25 +02:00
2020-04-07 08:41:25 +02:00
2020-04-07 08:41:25 +02:00
2020-04-07 08:41:25 +02:00
2020-03-28 16:33:52 +01:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-13 11:19:53 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 16:01:46 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-09 15:58:49 +02:00
2020-04-13 01:14:21 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-13 01:14:21 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-10 11:27:10 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 16:01:46 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-06 10:58:16 +02:00
2020-04-05 19:30:47 +02:00
2020-04-06 15:14:34 +02:00
2020-04-06 10:58:16 +02:00
2020-04-05 15:28:45 +02:00
2020-04-06 10:58:16 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:32:06 +02:00
2020-04-07 08:41:25 +02:00
2020-04-07 21:28:43 +02:00
2020-04-07 21:28:43 +02:00
2020-04-12 14:39:38 +02:00
2020-04-10 13:09:35 +02:00
2020-04-05 16:01:22 +02:00
2020-04-07 09:05:16 +02:00
2020-04-10 23:33:02 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-08 11:08:07 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-10 14:14:02 +02:00
2020-04-10 16:37:04 +02:00
2020-04-10 16:37:04 +02:00
2020-04-05 15:28:45 +02:00
2020-04-10 15:51:39 +02:00
2020-04-10 15:49:40 +02:00
2020-04-10 15:51:39 +02:00
2020-03-29 15:03:58 +02:00
2020-03-29 15:03:58 +02:00
2020-03-29 15:03:58 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-12 14:39:38 +02:00
2020-04-05 15:28:45 +02:00
2020-04-05 15:28:45 +02:00
2020-04-13 01:12:31 +02:00
2020-04-05 15:28:45 +02:00