File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -299,11 +299,10 @@ Parser.prototype.initializeEvaluating = function() {
299299 } ) ;
300300
301301 /**
302- * @param {Parser } this
303- * @param {"cooked" | "raw" } kind
304- * @param {any[] } quasis
305- * @param {any[] } expressions
306- * @return {BasicEvaluatedExpression[] }
302+ * @param {string } kind "cooked" | "raw"
303+ * @param {any[] } quasis quasis
304+ * @param {any[] } expressions expressions
305+ * @return {BasicEvaluatedExpression[] } Simplified template
307306 */
308307 function getSimplifiedTemplateResult ( kind , quasis , expressions ) {
309308 var i = 0 , parts = [ ] ;
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ var ContextDependencyHelpers = exports;
66
77/**
88 * Escapes regular expression metacharacters
9- * @param {string } str
10- * @return string
9+ * @param {string } str String to quote
10+ * @return { string } Escaped string
1111 */
1212function quotemeta ( str ) {
1313 return str . replace ( / [ - [ \] \\ / { } ( ) * + ? . ^ $ | ] / g, "\\$&" )
You can’t perform that action at this time.
0 commit comments