示例#1
0
 private static Object.ObjectInstance InitReturnValueArray(Object.ObjectInstance array, string inputValue, int lengthValue, int indexValue)
 {
     array.DefineOwnProperty("index", new PropertyDescriptor(indexValue, writable: true, enumerable: true, configurable: true), true);
     array.DefineOwnProperty("input", new PropertyDescriptor(inputValue, writable: true, enumerable: true, configurable: true), true);
     array.DefineOwnProperty("length", new PropertyDescriptor(value: lengthValue, writable: true, enumerable: false, configurable: false), true);
     return(array);
 }
示例#2
0
 private static Object.ObjectInstance InitReturnValueArray(Object.ObjectInstance array, string inputValue, int lengthValue, int indexValue)
 {
     array.DefineOwnProperty("index", new PropertyDescriptor(indexValue, true, true, true), true);
     array.DefineOwnProperty("input", new PropertyDescriptor(inputValue, true, true, true), true);
     array.DefineOwnProperty("length", new PropertyDescriptor(lengthValue, false, false, false), true);
     return(array);
 }