nativeConstructorBuilder("Object") .withParamsNode(createOptionalParameters(allType)) .withReturnsOwnInstanceType() .withTemplateKeys(iObjectIndexTemplateKey, iObjectElementTemplateKey) .build(); nativeConstructorBuilder("Array") .withParamsNode(createParametersWithVarArgs(allType)) .withReturnsOwnInstanceType() nativeConstructorBuilder("RegExp") .withParamsNode(createOptionalParameters(allType, allType)) .withReturnsOwnInstanceType() .build();