@bbn/bbn 1.0.316 → 1.0.317
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/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/misc/analyzeFunction.js +1 -1
- package/dist/fn/type/isSame.js +1 -2
- package/package.json +1 -1
|
@@ -203,7 +203,7 @@ export default function analyzeFunction(fn) {
|
|
|
203
203
|
throw Error("Unexpected end of function while parsing function");
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
if (body
|
|
206
|
+
if (body.substr(0, 25).indexOf('[native code]') > -1) {
|
|
207
207
|
isBinary = true;
|
|
208
208
|
}
|
|
209
209
|
var argString = args
|
package/dist/fn/type/isSame.js
CHANGED
|
@@ -71,8 +71,7 @@ export default function isSame(obj1, obj2, done) {
|
|
|
71
71
|
else if (obj1 && obj2 && (typeof obj1 === 'function') && (typeof obj2 === 'function')) {
|
|
72
72
|
var tmp1 = analyzeFunction(obj1);
|
|
73
73
|
var tmp2 = analyzeFunction(obj2);
|
|
74
|
-
|
|
75
|
-
var isSame_1 = tmp1.hash === tmp2.hash;
|
|
74
|
+
var isSame_1 = (tmp1.hash === tmp2.hash);
|
|
76
75
|
// If native code better to replace
|
|
77
76
|
if (isSame_1 && tmp1.isBinary) {
|
|
78
77
|
isSame_1 = false;
|