Functions§
- escape_
line_ terminators - Escapes the JS line terminators in
text. A raw one ends a//comment, and the rest oftextbecomes code. - escape_
non_ ascii - escape_
string_ for_ template_ literal - Escape a string value as template literal raw text, without surrounding backticks.
Raw text is source, so a lone surrogate is written as a
\uescape. - is_
path_ like_ specifier - Check if the specifier is a path-like specifier. E.g.
./foo,../foo,/foo,C:\foo,file:///foo - is_
relative_ specifier - is_
validate_ assignee_ identifier_ name - is_
validate_ identifier_ name - legitimize_
identifier_ name - legitimize_
json_ local_ binding_ name - none_
preserved_ keyword_ or_ global_ object_ ext - extra branches are used to avoid SyntaxError in strict mode
- property_
access_ str - property_
access_ str_ with_ ascii - to_
ecma_ string_ literal - to_
module_ import_ export_ name_ with_ ascii - to_
usv_ str - Converts a JavaScript string to UTF-8 the way
URLand Node’s file system APIs do: each lone surrogate becomes U+FFFD. A module request with a lone surrogate then names the file the runtime would load.