Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
testRealm.define('pkg/ClassB', function(require, exports, module) {
var ClassA = require('pkg/ClassA');
function ClassB() {
};
ClassB.prototype = Object.create(ClassA.prototype);
module.exports = ClassB;
});
testRealm.define('pkg/ClassB', function(require, exports, module) {
var ClassA = require('pkg/ClassA');
function ClassB() {
};
ClassB.prototype = objectCreate(ClassA.prototype);
module.exports = ClassB;
});