Commit 2072de46 authored by Romain Courteaud's avatar Romain Courteaud

Release version 0.24.0

parent ebe6cd0e
Pipeline #10639 passed with stage
in 0 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -745,6 +745,27 @@ if (typeof document.contains !== 'function') { ...@@ -745,6 +745,27 @@ if (typeof document.contains !== 'function') {
Event, URL) { Event, URL) {
"use strict"; "use strict";
// Error propagation in jschannel uses JSON.stringify
// Sadly, ...
// JSON.stringify(new TypeError('lala')) -> '{}'
// Change the browser default behaviour to propagate at least the message
// See https://stackoverflow.com/a/18391400
if (!Error.prototype.hasOwnProperty('toJSON')) {
Object.defineProperty(Error.prototype, 'toJSON', {
value: function () {
var alt = {};
Object.getOwnPropertyNames(this).forEach(function (key) {
alt[key] = this[key];
}, this);
return alt;
},
configurable: true,
writable: true
});
}
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// Error // Error
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
......
{ {
"name": "renderjs", "name": "renderjs",
"version": "0.23.1", "version": "0.24.0",
"description": "RenderJs provides HTML5 gadgets", "description": "RenderJs provides HTML5 gadgets",
"main": "dist/renderjs-latest.js", "main": "dist/renderjs-latest.js",
"dependencies": { "dependencies": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment