From 9385ed27ae8e73ea2042c2045478d5c0a27f9dd9 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 10 Oct 2019 01:27:16 +0300 Subject: [PATCH] fix v.js --- vlib/builtin/js/array.v | 2 +- vlib/strings/builder_js.v | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/js/array.v b/vlib/builtin/js/array.v index bc341fa235..90640e4a8f 100644 --- a/vlib/builtin/js/array.v +++ b/vlib/builtin/js/array.v @@ -126,7 +126,7 @@ pub fn (b []byte) hex() string { return 'sdf' } -pub fn (arr mut array) _push_many(val voidptr, size int) { +pub fn (arr mut array) push_many(val voidptr, size int) { } pub fn free(voidptr) { diff --git a/vlib/strings/builder_js.v b/vlib/strings/builder_js.v index 10d68d2c9c..b26ca5e4ec 100644 --- a/vlib/strings/builder_js.v +++ b/vlib/strings/builder_js.v @@ -18,13 +18,13 @@ pub fn new_builder(initial_size int) Builder { } pub fn (b mut Builder) write(s string) { - b.buf._push_many(s.str, s.len) + b.buf.push_many(s.str, s.len) //b.buf << []byte(s) // TODO b.len += s.len } pub fn (b mut Builder) writeln(s string) { - b.buf._push_many(s.str, s.len) + b.buf.push_many(s.str, s.len) //b.buf << []byte(s) // TODO b.buf << `\n` b.len += s.len + 1