Skip to content

Commit 0391069

Browse files
committed
Use the $[] instead of $_h[] inside the generated functions
1 parent d517751 commit 0391069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const build = (statics) => {
100100
for (let i=0; i<statics.length; i++) {
101101
if (i > 0) {
102102
if (!inTag) commit();
103-
field = `$_h[${i}]`;
103+
field = `$[${i}]`;
104104
commit();
105105
}
106106

@@ -180,5 +180,5 @@ const build = (statics) => {
180180
}
181181
}
182182
commit();
183-
return Function('h', '$_h', out);
183+
return Function('h', '$', out);
184184
};

0 commit comments

Comments
 (0)