Skip to content

Commit

Permalink
nvm: test case bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bibibong committed Jun 14, 2018
1 parent 27d5226 commit 3c4842f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
6 changes: 3 additions & 3 deletions nebtestkit/cases/contract/contract.feature.random.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ var caseGroup = {
}
},
"testExpect": {
canExcuteTx: true,
canExcuteTx: false,
toBalanceChange: "0",
status: 1,
equalr1r2: false
status: 0,
eventErr: "Call: Error: input seed must be a string"
}
},
{
Expand Down
10 changes: 0 additions & 10 deletions nf/nvm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ func AttachLibVersionDelegateFunc(handler unsafe.Pointer, require *C.char) *C.ch
return nil
}

logging.VLog().WithFields(logrus.Fields{
"libname": libname,
"return": JSLibRootName + ver + libname[JSLibRootNameLen-1:],
}).Debug("attach lib.")

return C.CString(JSLibRootName + ver + libname[JSLibRootNameLen-1:])
}

Expand All @@ -192,11 +187,6 @@ func AttachLibVersionDelegateFunc(handler unsafe.Pointer, require *C.char) *C.ch
libname = JSLibRootName + libname
}
}

logging.VLog().WithFields(logrus.Fields{
"libname": libname,
"return": JSLibRootName + core.DefaultV8JSLibVersion + libname[JSLibRootNameLen-1:],
}).Debug("attach lib.")
return C.CString(JSLibRootName + core.DefaultV8JSLibVersion + libname[JSLibRootNameLen-1:])
}

Expand Down
Binary file modified nf/nvm/native-lib/libnebulasv8.dylib
Binary file not shown.
2 changes: 1 addition & 1 deletion nf/nvm/v8/lib/1.0.5/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = (function(){
if (typeof(userseed) !== 'string') {
throw new Error("input seed must be a string")
}
if (typeof userseed === 'undefined' || userseed == null || userseed === "") {
if (userseed === "") {
return;
}
checkCtx();
Expand Down

0 comments on commit 3c4842f

Please sign in to comment.