- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
755 B
JavaScript
31 lines
755 B
JavaScript
'use strict';
|
|
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var getIteratorMethod = require('../helpers/getIteratorMethod');
|
|
var AdvanceStringIndex = require('./AdvanceStringIndex');
|
|
var Call = require('./Call');
|
|
var GetMethod = require('./GetMethod');
|
|
|
|
var isObject = require('es-object-atoms/isObject');
|
|
|
|
var ES = {
|
|
AdvanceStringIndex: AdvanceStringIndex,
|
|
GetMethod: GetMethod
|
|
};
|
|
|
|
// https://262.ecma-international.org/6.0/#sec-getiterator
|
|
|
|
module.exports = function GetIterator(obj, method) {
|
|
var actualMethod = method;
|
|
if (arguments.length < 2) {
|
|
actualMethod = getIteratorMethod(ES, obj);
|
|
}
|
|
var iterator = Call(actualMethod, obj);
|
|
if (!isObject(iterator)) {
|
|
throw new $TypeError('iterator must return an object');
|
|
}
|
|
|
|
return iterator;
|
|
};
|