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 013ce4b commit 4cfef36Copy full SHA for 4cfef36
wrapper.js
@@ -35,9 +35,9 @@ function setupMethods (soljson) {
35
soljson.setValue(ptr, buffer, '*');
36
};
37
38
- var copyFromCString = function (ptr) {
39
- return soljson.Pointer_stringify(ptr);
40
- }
+ // This is to support multiple versions of Emscripten.
+ // Take a single `ptr` and returns a `str`.
+ var copyFromCString = soljson.UTF8ToString || soljson.Pointer_stringify;
41
42
var wrapCallback = function (callback) {
43
assert(typeof callback === 'function', 'Invalid callback specified.');
0 commit comments