File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ if (typeof(BigInt) != "undefined") {
226
226
return this != b ;
227
227
} ;
228
228
229
+ wBigInt . prototype . toJSNumber = function ( ) {
230
+ return Number ( this ) ;
231
+ } ;
232
+
233
+
229
234
} else {
230
235
231
236
var oldProto = bigInt . prototype ;
Original file line number Diff line number Diff line change @@ -223,11 +223,11 @@ class RTCtx {
223
223
return this . witness [ sId ] ;
224
224
}
225
225
226
- assert ( a , b ) {
226
+ assert ( a , b , errStr ) {
227
227
const ba = bigInt ( a ) ;
228
228
const bb = bigInt ( b ) ;
229
229
if ( ! ba . equals ( bb ) ) {
230
- throw new Error ( "Constraint doesn't match: " + ba . toString ( ) + " != " + bb . toString ( ) ) ;
230
+ throw new Error ( "Constraint doesn't match " + this . currentComponent + " : "+ errStr + " -> " + ba . toString ( ) + " != " + bb . toString ( ) ) ;
231
231
}
232
232
}
233
233
}
You can’t perform that action at this time.
0 commit comments