Quasis: assignable substitutions?

Mike Samuel mikesamuel at gmail.com
Mon Jun 20 09:18:12 PDT 2011


2011/6/20 Mike Samuel <mikesamuel at gmail.com>:
> I can imagine that in
>
>   re`foo(${bar}.)baz`.match(str)

"match" -> "exec"

> where bar="BAR" the user would expect this to do
>
>    new RegExp("foo(BAR.)baz").exec(str)
>
> making no assignments.


More information about the es-discuss mailing list