MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

testing/fake-dom.js:622–630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620 */
621export class FakeStorage {
622 constructor() {
623 /** @const {!{[key: string]: string}} */
624 this.values = {};
625
626 // Length.
627 Object.defineProperty(this, 'length', {
628 get: () => Object.keys(this.values).length,
629 });
630 }
631
632 /**
633 * @param {number} n

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected