Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Dec 9, 2019
1 parent 45641f1 commit c2fece8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function setupMethods (soljson) {
var wrapCallbackWithKind = function (callback) {
assert(typeof callback === 'function', 'Invalid callback specified.');
return function (context, kind, data, contents, error) {
console.log(context);
assert(context === null, 'Callback context must be null.');
// Must be a null pointer.
assert(context === 0, 'Callback context must be null.');
var result = callback(copyFromCString(kind), copyFromCString(data));
if (typeof result.contents === 'string') {
copyToCString(result.contents, contents);
Expand Down

0 comments on commit c2fece8

Please sign in to comment.