ballercat/walt

Top Level StringLiteral constants

Open

#115 建立於 2018年5月1日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (155 fork)batch import
buggood first issuehelp wanted

倉庫指標

Star
 (4,637 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Bug Report

Overview

Top level StringLiterals fail validation, they should not. Instead, they should compile out to a constant i32 pointer to the data location for a string.

Expected

Top level strings are allowed

Actual

Strings in top-level constants throw validation warnings.

Example

const memory: Memory<{ initial: 1 }>;
const myString: i32 = 'hello world';
export function test(): i32 {
  return myString;
}

貢獻者指南