Commit ad9902af

ad9902afe011Merged

sacckey <[email protected]> · 6 months ago · 2 files · +1 added · ~1 modified

Description

Support ConstantPath receiver in class method dispatch

Details

Commit
ad9902afe011
Parent
c98048e104bd

spinel_codegen.rbmodifiedView file

@@ -16151,9 +16151,9 @@
1615116151 end
1615216152 end
1615316153
16154- # Math
16155- if @nd_type[recv] == "ConstantReadNode"
16156- rcname = @nd_name[recv]
16154+ rcname = constructor_class_name(recv)
16155+ if rcname != ""
16156+ # Math
1615716157 if rcname == "Math"
1615816158 if mname == "sqrt"
1615916159 return "sqrt(" + compile_arg0(nid) + ")"