constructor(modulus, generator) {
			super();
			this.modulus = modulus;
			this.expTable = new Int32Array(modulus);
			this.logTable = new Int32Array(modulus);
			let x = /*int*/ 1;
			for (let i /*int*/ = 0; i < modulus; i++) {
				this.expTable[i] = x;
				x = (x * generator) % modulus;
			}
			for (let i /*int*/ = 0; i < modulus - 1; i++) {
				this.logTable[this.expTable[i]] = i;
			}
			// logTable[0] == 0 but this should never be used
			this.zero = new ModulusPoly(this, new Int32Array([0]));
			this.one = new ModulusPoly(this, new Int32Array([1]));
		}
<p>A field based on powers of a generator integer, modulo some modulus.</p>

@author Sean Owen
@see com.google.zxing.common.reedsolomon.GenericGF