aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 5903a5be..151c399d 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -388,6 +388,14 @@ function Pointer_stringify(ptr) {
return ret;
}
+function Array_stringify(array) {
+ var ret = "";
+ for (var i = 0; i < array.length; i++) {
+ ret += String.fromCharCode(array[i]);
+ }
+ return ret;
+}
+
// Memory management
var PAGE_SIZE = 4096;