How to use the pkg/ClassA.prototype function in pkg

To help you get started, we’ve selected a few pkg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github BladeRunnerJS / brjs / brjs-sdk / sdk / libs / javascript / browser-modules / spec / realm-spec.js View on Github external
testRealm.define('pkg/ClassB', function(require, exports, module) {
			var ClassA = require('pkg/ClassA');
			function ClassB() {
			};
			ClassB.prototype = Object.create(ClassA.prototype);
			module.exports = ClassB;
		});
github BladeRunnerJS / brjs / brjs-sdk / sdk / libs / javascript / browser-modules / spec / realm-spec.js View on Github external
testRealm.define('pkg/ClassB', function(require, exports, module) {
			var ClassA = require('pkg/ClassA');
			function ClassB() {
			};
			ClassB.prototype = objectCreate(ClassA.prototype);
			module.exports = ClassB;
		});