GT2/GT2-iOS/node_modules/pegjs/lib/utils/classes.js

13 lines
248 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
"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;