We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e22038 commit b45f0e3Copy full SHA for b45f0e3
src/vm/js/RegexCompiler.nqp
@@ -67,8 +67,8 @@ class RegexCompiler {
67
self.case($!initial_label),
68
self.compile_rx($node),
69
self.case($restart_label),
70
- "$!cstack = $!cursor[\"\$!cstack\"];",
71
- "if ($!cstack instanceof nqp.NQPArray) $!cstack = $!cstack.array;\n",
+ "$!cstack = {self.get_cursor_attr($!cursor, '$!cstack')};",
+ "if ($!cstack && $!cstack.\$\$toArray) $!cstack = $!cstack.\$\$toArray;\n",
72
self.case($!fail_label),
73
"if ($!bstack.length == 0) \{{self.goto($!done_label)}\}\n",
74
"$cstack_top = $!bstack.pop();\n",
0 commit comments