From 503819ae5478e99163ea3b30e9055956a39bfd99 Mon Sep 17 00:00:00 2001 From: spv420 Date: Wed, 1 Jun 2022 17:42:57 -0400 Subject: fix puts --- src/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/main.js b/src/js/main.js index c6ceba0..8a13df6 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -21,6 +21,7 @@ var MAP_ANON = 0x1000; var victim = {a: 13.37}; +if (0) { /* * leftover shit from jsc_fun, used to be using `log` */ @@ -33,6 +34,7 @@ try { puts = function (){}; } +} var JSStringCreateWithUTF8CString = 0x239f9d0d; var JSObjectGetProperty = 0x239fa411; @@ -54,7 +56,7 @@ function main() { init_sptr_heap(); - scall("printf", "%x %x %x %x", 0x41, 0x42, 0x43, 0x44); + scall("printf", "%x %x %x %x\n", 0x41, 0x42, 0x43, 0x44); puts("we out here"); puts("I came through a portal holding a 40 and a blunt. Do you really wanna test me right now?"); -- cgit v1.2.3