2

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)

  • [This discussion](https://stackoverflow.com/q/48528281/1048572) might give you some food for thought. – Bergi Feb 10 '18 at 16:27
  • I think your first question "I don't understand feature XY" is too broad for SO - what in particular do you not understand? How it works (at which step)? What its purpose is? Why it was designed that way? We might be able to help you with the second part though. – Bergi Feb 10 '18 at 16:29
  • Thank you for answer.I raed that case, but i still can't figure out. I just want to know how template literal save in [[TemplateMap]]. So - if you can show me some example about [[TemplateMap]]'s content. – ENvironmentSet Feb 10 '18 at 16:43

1 Answers1

2

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.

Bergi
  • 630,263
  • 148
  • 957
  • 1,375