lib0 0.2.48 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decoding.js +2 -2
- package/dist/{broadcastchannel-f22849e9.cjs → broadcastchannel-1ac6c212.cjs} +2 -2
- package/dist/{broadcastchannel-f22849e9.cjs.map → broadcastchannel-1ac6c212.cjs.map} +1 -1
- package/dist/broadcastchannel.cjs +2 -2
- package/dist/{buffer-f5603fd0.cjs → buffer-c98f67d5.cjs} +3 -3
- package/dist/{buffer-f5603fd0.cjs.map → buffer-c98f67d5.cjs.map} +1 -1
- package/dist/buffer.cjs +1 -1
- package/dist/decoding.cjs +1 -1
- package/dist/encoding.cjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/{prng-69dc1664.cjs → prng-1aa0a1bc.cjs} +2 -2
- package/dist/{prng-69dc1664.cjs.map → prng-1aa0a1bc.cjs.map} +1 -1
- package/dist/prng.cjs +2 -2
- package/dist/test.cjs +3 -3
- package/dist/test.cjs.map +1 -1
- package/dist/test.js +3 -3
- package/dist/test.js.map +1 -1
- package/dist/testing.cjs +2 -2
- package/package.json +1 -1
package/dist/test.js
CHANGED
|
@@ -2926,7 +2926,7 @@
|
|
|
2926
2926
|
return num >>> 0 // return unsigned number!
|
|
2927
2927
|
}
|
|
2928
2928
|
/* istanbul ignore if */
|
|
2929
|
-
if (len >
|
|
2929
|
+
if (len > 53) {
|
|
2930
2930
|
throw new Error('Integer out of range!')
|
|
2931
2931
|
}
|
|
2932
2932
|
}
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
return sign * (num >>> 0)
|
|
2961
2961
|
}
|
|
2962
2962
|
/* istanbul ignore if */
|
|
2963
|
-
if (len >
|
|
2963
|
+
if (len > 53) {
|
|
2964
2964
|
throw new Error('Integer out of range!')
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
@@ -4605,8 +4605,8 @@
|
|
|
4605
4605
|
}
|
|
4606
4606
|
});
|
|
4607
4607
|
});
|
|
4608
|
+
assert(durationConcatElements < durationConcatElementsNative * 1.3, '1.3x faster. We expect that the native approach is slower. If this fails, our expectantion is not met in your javascript environment. Please report this issue.');
|
|
4608
4609
|
assert(durationConcatElements < durationSingleElements, 'We expect that the second approach is faster. If this fails, our expectantion is not met in your javascript environment. Please report this issue.');
|
|
4609
|
-
assert(durationConcatElements < durationConcatElementsNative * 1.3, 'We expect that the native approach is slower. If this fails, our expectantion is not met in your javascript environment. Please report this issue.');
|
|
4610
4610
|
};
|
|
4611
4611
|
|
|
4612
4612
|
/**
|