Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1289x 6x 1289x 3173x 1x | 'use strict'; /** * Encapsulates objects which will not change over the course of a function execution. */ class Invariants { constructor( evaluator, resolver ) { // Evaluator wraps the function-evaluator service. Object.defineProperty( this, 'evaluator', { get: function () { return evaluator; } } ); // Resolver wraps MediaWiki for the purpose of calling wikilambda-fetch. Object.defineProperty( this, 'resolver', { get: function () { return resolver; } } ); } } module.exports = { Invariants }; |