@@ -35,8 +35,8 @@ let ctx_counter = 1;
35
35
let import_callback = addFunction ( function ( ctx_ , base_ , rel_ , found_here_ , success_ ) {
36
36
let vm = ctx_mapping [ ctx_ ] . vm
37
37
let files = ctx_mapping [ ctx_ ] . files
38
- let base = Module . Pointer_stringify ( base_ ) ;
39
- let rel = Module . Pointer_stringify ( rel_ ) ;
38
+ let base = Module . UTF8ToString ( base_ ) ;
39
+ let rel = Module . UTF8ToString ( rel_ ) ;
40
40
let abs_path ;
41
41
// It is possible that rel is actually absolute.
42
42
if ( rel [ 0 ] == '/' ) {
@@ -77,7 +77,7 @@ function jsonnet_evaluate_snippet_wrapped(
77
77
let output_ptr = jsonnet_evaluate_snippet ( vm , filename , code , error_ptr ) ;
78
78
let error = Module . getValue ( error_ptr , 'i32*' ) ;
79
79
Module . _free ( error_ptr ) ;
80
- let result = Module . Pointer_stringify ( output_ptr ) ;
80
+ let result = Module . UTF8ToString ( output_ptr ) ;
81
81
jsonnet_realloc ( vm , output_ptr , 0 ) ;
82
82
jsonnet_destroy ( vm ) ;
83
83
delete ctx_mapping [ ctx_ptr ] ;
@@ -94,7 +94,7 @@ function jsonnet_fmt_snippet_wrapped(filename, code) {
94
94
let output_ptr = jsonnet_fmt_snippet ( vm , filename , code , error_ptr ) ;
95
95
let error = Module . getValue ( error_ptr , 'i32*' ) ;
96
96
Module . _free ( error_ptr ) ;
97
- let result = Module . Pointer_stringify ( output_ptr ) ;
97
+ let result = Module . UTF8ToString ( output_ptr ) ;
98
98
jsonnet_realloc ( vm , output_ptr , 0 ) ;
99
99
jsonnet_destroy ( vm ) ;
100
100
if ( error ) {
0 commit comments