lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/test/asyncjs/assert.js in gollum-3.1.3

- old
+ new

@@ -1,7 +1,7 @@ define(function(require, exports, module) { - + // http://wiki.commonjs.org/wiki/Unit_Testing/1.0 // // THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8! // // Originally from narwhal.js (http://narwhaljs.org) @@ -139,10 +139,10 @@ function _deepEqual(actual, expected) { // 7.1. All identical values are equivalent, as determined by ===. if (actual === expected) { return true; - } else if (Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) { + } else if (typeof Buffer !== "undefined" && Buffer.isBuffer(actual) && Buffer.isBuffer(expected)) { if (actual.length != expected.length) return false; for (var i = 0; i < actual.length; i++) { if (actual[i] !== expected[i]) return false; }