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

Method setMetaByName

src/service/ampdoc-impl.js:969–975  ·  view source on GitHub ↗

@override

(name, content)

Source from the content-addressed store, hash-verified

967
968 /** @override */
969 setMetaByName(name, content) {
970 devAssert(name, 'Attempted to store invalid meta name/content pair');
971 if (!this.meta_) {
972 this.meta_ = map();
973 }
974 this.meta_[name] = content;
975 }
976}
977
978/**

Callers

nothing calls this directly

Calls 2

devAssertFunction · 0.90
mapFunction · 0.90

Tested by

no test coverage detected