14 lines · 383 B · JavaScript
RawDownload
/* global module */// test Entity constructor based on inherited constructor from a modulefunction constructor() {    print("entityConstructorNested::constructor");    var MyEntity = Script.require('./entityConstructorModule.js');    return new MyEntity("-- created from entityConstructorNested --");} try {    module.exports = constructor;} catch (e) {    constructor;}