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 bb73f36 commit 013ce4bCopy full SHA for 013ce4b
wrapper.js
@@ -35,10 +35,14 @@ function setupMethods (soljson) {
35
soljson.setValue(ptr, buffer, '*');
36
};
37
38
+ var copyFromCString = function (ptr) {
39
+ return soljson.Pointer_stringify(ptr);
40
+ }
41
+
42
var wrapCallback = function (callback) {
43
assert(typeof callback === 'function', 'Invalid callback specified.');
44
return function (path, contents, error) {
- var result = callback(soljson.Pointer_stringify(path));
45
+ var result = callback(copyFromCString(path));
46
if (typeof result.contents === 'string') {
47
copyToCString(result.contents, contents);
48
}
0 commit comments