I'm writing some article that about ECMA-262's realm in korean(actually there is no article about realm). So, I read ECMA-262 about realm record.and i can understand about [[Intrinsics]], [[GlobalObject]] and etc.. But, I can't understand about [[TemplateMap]].
1.How template literal save in [[TemplateMap]].(need some example about [[TemplateMap]]'s content)
The entries of the [[TemplateMap]] are of the format "Record {[[Strings]]: rawStrings
, [[Array]]: template
}". template
is the frozen template object that is passed to the tag function, and rawStrings
are a list of raw template values of the literal - basically the same as the .raw
array.