@@ -1669,15 +1669,15 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
1669
1669
if $ * BINDVAL {
1670
1670
my $ bindval := self . as_js_clear_bindval($ * BINDVAL , : want($ type ));
1671
1671
if $ var . decl eq ' var' {
1672
- self . stored_result(Chunk. new ($ type , " ({ $ * CTX } [{ quote_string($ var . name )} ] = { $ bindval . expr} )" , $ bindval ), : $ want );
1672
+ self . stored_result(Chunk. new ($ type , " ({ $ * BLOCK . ctx } [{ quote_string($ var . name )} ] = { $ bindval . expr} )" , $ bindval ), : $ want );
1673
1673
}
1674
1674
else {
1675
1675
if $ * BLOCK . ctx_for_var($ var ) -> $ ctx {
1676
1676
self . stored_result(Chunk. new ($ type , " ({ $ ctx } [{ quote_string($ var . name )} ] = { $ bindval . expr} )" , $ bindval ), : $ want );
1677
1677
}
1678
1678
else {
1679
1679
# nqp::die("we can't find ctx for {$var.name}");
1680
- self . stored_result(Chunk. new ($ type , " { $ * CTX } .bind({ quote_string($ var . name )} , { $ bindval . expr} )" , $ bindval ), : $ want );
1680
+ self . stored_result(Chunk. new ($ type , " { $ * BLOCK . ctx } .bind({ quote_string($ var . name )} , { $ bindval . expr} )" , $ bindval ), : $ want );
1681
1681
}
1682
1682
}
1683
1683
}
@@ -1700,17 +1700,17 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
1700
1700
nqp ::die(" can't handle:" ~ $ var . decl);
1701
1701
}
1702
1702
1703
- $ * BLOCK . add_var_setup(" { $ * CTX } [{ quote_string($ var . name )} ] = $ initial_value ;\n " );
1703
+ $ * BLOCK . add_var_setup(" { $ * BLOCK . ctx } [{ quote_string($ var . name )} ] = $ initial_value ;\n " );
1704
1704
1705
- Chunk. new ($ type , " $ * CTX [ {quote_string($ var . name )}] " , : node($ var ));
1705
+ Chunk. new ($ type , " { $ * BLOCK . ctx } [{ quote_string($ var . name )} ]" , : node($ var ));
1706
1706
}
1707
1707
else {
1708
1708
if $ * BLOCK . ctx_for_var($ var ) -> $ ctx {
1709
1709
Chunk. new ($ type , " $ ctx[ {quote_string($ var . name )}] " , : node($ var ));
1710
1710
}
1711
1711
else {
1712
1712
# nqp::die("we can't find ctx for {$var.name}");
1713
- Chunk. new ($ type , " { $ * CTX } .lookup({ quote_string($ var . name )} )" , : node($ var ));
1713
+ Chunk. new ($ type , " { $ * BLOCK . ctx } .lookup({ quote_string($ var . name )} )" , : node($ var ));
1714
1714
}
1715
1715
}
1716
1716
}
@@ -1722,7 +1722,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
1722
1722
" { $ ctx } [{ quote_string($ var . name )} ] = $ js_expr ;\n " ;
1723
1723
}
1724
1724
else {
1725
- " { $ * CTX } .bind({ quote_string($ var . name )} , $ js_expr );\n " ;
1725
+ " { $ * BLOCK . ctx } .bind({ quote_string($ var . name )} , $ js_expr );\n " ;
1726
1726
}
1727
1727
}
1728
1728
else {
@@ -1737,7 +1737,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
1737
1737
" $ ctx[ {quote_string($ var . name )}] " ;
1738
1738
}
1739
1739
else {
1740
- " { $ * CTX } .lookup({ quote_string($ var . name )} )" ;
1740
+ " { $ * BLOCK . ctx } .lookup({ quote_string($ var . name )} )" ;
1741
1741
}
1742
1742
}
1743
1743
else {
0 commit comments