Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1'use strict';2 3var $TypeError = require('es-errors/type');4var isObject = require('es-object-atoms/isObject');5 6var Call = require('./Call');7var CompletionRecord = require('./CompletionRecord');8var GetMethod = require('./GetMethod');9var IsCallable = require('./IsCallable');10 11var isIteratorRecord = require('../helpers/records/iterator-record');12 13// https://262.ecma-international.org/15.0/#sec-iteratorclose14 15module.exports = function IteratorClose(iteratorRecord, completion) {16 if (!isIteratorRecord(iteratorRecord)) {17 throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 118 }19 if (!isObject(iteratorRecord['[[Iterator]]'])) {20 throw new $TypeError('Assertion failed: iteratorRecord.[[Iterator]] must be an Object'); // step 121 }22 23 if (!IsCallable(completion) && !(completion instanceof CompletionRecord)) { // step 224 throw new $TypeError('Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance');25 }26 var completionThunk = completion instanceof CompletionRecord ? function () { return completion['?'](); } : completion;27 28 var iterator = iteratorRecord['[[Iterator]]']; // step 329 30 var iteratorReturn;31 try {32 iteratorReturn = GetMethod(iterator, 'return'); // step 433 } catch (e) {34 completionThunk(); // throws if `completion` is a throw completion // step 635 // eslint-disable-next-line no-useless-assignment36 completionThunk = null; // ensure it's not called twice.37 throw e; // step 738 }39 if (typeof iteratorReturn === 'undefined') {40 return completionThunk(); // step 5.a - 5.b41 }42 43 var innerResult;44 try {45 innerResult = Call(iteratorReturn, iterator, []);46 } catch (e) {47 // if we hit here, then "e" is the innerResult completion that needs re-throwing48 49 completionThunk(); // throws if `completion` is a throw completion // step 650 // eslint-disable-next-line no-useless-assignment51 completionThunk = null; // ensure it's not called twice.52 53 // if not, then return the innerResult completion54 throw e; // step 755 }56 var completionRecord = completionThunk(); // if innerResult worked, then throw if the completion does57 // eslint-disable-next-line no-useless-assignment58 completionThunk = null; // ensure it's not called twice.59 60 if (!isObject(innerResult)) {61 throw new $TypeError('iterator .return must return an object');62 }63 64 return completionRecord;65};66 