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 75009a2 commit 31feaa0Copy full SHA for 31feaa0
assembly-script/wamr_app_lib/console.ts
@@ -3,13 +3,13 @@
3
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
*/
5
6
-@external("env", "printf")
+@external("env", "puts")
7
declare function printf(a: ArrayBuffer): i32;
8
9
export function log(a: string): void {
10
- printf(String.UTF8.encode(a + '\n', true));
+ printf(String.UTF8.encode(a, true));
11
}
12
13
export function log_number(a: number): void {
14
- printf(String.UTF8.encode(a.toString() + '\n'));
+ printf(String.UTF8.encode(a.toString()));
15
0 commit comments