13 lines · 504 B · JavaScript
RawDownload
/* eslint-disable comma-dangle */// test module method exception being thrown within main constructor(function() {    var apiMethod = Script.require('../exceptions/exceptionInFunction.js');    print(Script.resolvePath(''), "apiMethod", apiMethod);    // this next line throws from within apiMethod    print(apiMethod());    return {        preload: function(uuid) {            print("entityConstructorAPIException::preload -- never seen --", uuid, Script.resolvePath(''));        },    };});