pegjs/lib/utils/classes.js
David Majda 969d39e8d9 Remove trailing commas in object literals
They broke IE 8-9.
2015-08-21 16:02:13 +02:00

13 lines
248 B
JavaScript

"use strict";
/* Class utilities */
var classes = {
subclass: function(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
}
};
module.exports = classes;