static/ext/src/ux/AceEditor/b339f0b799f23466a9fb3ac92af4cb7e572604a6@/worker.js
function reconstituteType(name, typeSpec) {
    if (name.substr(-2) === '[]') { // i.e. endsWith('[]')
        var subtypeName = name.slice(0, -2);
        return new types['array'](subtypeName);
    }

    var type = types[name];
    if (typeof type === 'function') {
        type = new type(typeSpec);
    }
    return type;
}
function reconstituteType(name, typeSpec) {
    if (name.substr(-2) === '[]') { // i.e. endsWith('[]')
        var subtypeName = name.slice(0, -2);
        return new types['array'](subtypeName);
    }

    var type = types[name];
    if (typeof type === 'function') {
        type = new type(typeSpec);
    }
    return type;
}
function reconstituteType ( name , typeSpec ) { if ( name . substr ( - 2 ) === '[]' ) { // i.e. endsWith('[]') var subtypeName = name . slice ( 0 , - 2 ) ; return new types [ 'array' ] ( subtypeName ) ; } var type = types [ name ] ; if ( typeof type === 'function' ) { type = new type ( typeSpec ) ; } return type ; }
See description of #exports.registerType()
See description of #exports . registerType ()