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 1180f99 commit 6f7e7f5Copy full SHA for 6f7e7f5
src/libasr/codegen/asr_to_wasm.cpp
@@ -1935,6 +1935,15 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
1935
throw CodeGenError("String Types not yet supported");
1936
}
1937
1938
+ void visit_StringLen(const ASR::StringLen_t & x) {
1939
+ if (x.m_value) {
1940
+ visit_expr(*x.m_value);
1941
+ return;
1942
+ }
1943
+ this->visit_expr(*x.m_arg);
1944
+ m_wa.emit_i32_load(wasm::mem_align::b8, 4);
1945
1946
+
1947
void visit_LogicalBinOp(const ASR::LogicalBinOp_t &x) {
1948
if (x.m_value) {
1949
visit_expr(*x.m_value);
0 commit comments