This may be a BCAK error, but trying to browserify my tests (in mocha + should), I get
SyntaxError: Error while loading entry file "/samples/gbL.jsMop/node_modules/should/lib/should.js": Unexpected token: punc (()
at line 0:1045 in expression:
var util=require("util"),http=require("http"),assert=require("assert"),AssertionError=assert.AssertionError,statusCodes=http.STATUS_CODES,eql=require("./eql"),i=util.inspect;exports=module.exports=assert;exports.version="0.6.3";exports.exist=function(obj,msg{if(null==obj){throw new AssertionError({message:msg||"expected "+i(obj)+" to exist",stackStartFunction:should.exist})}};exports.not={};exports.not.exist=function(obj,msg){if(null!=obj){throw new AssertionError({message:msg||"expected "+i(obj)+" to not exist",stackStartFunction:should.not.exist})}};Object.defineProperty(Object.prototype,"should",{set:function(){},get:function(){return new Assertion(Object(this).valueOf())},configurable:true});var Assertion=exports.Assertion=function Assertion(obj){this.obj=obj};Assertion.prototype={exports:exports,assert:function(expr,msg,negatedMsg,expected){var msg=[this.negate?negatedMsg:msg][0],ok=[this.negate?!expr:expr][0];if(!ok){throw new AssertionError({message:msg,actual:this.obj,expected:expected,stackStartFunction:this.assert})}},(get an(){return this}),
Do you think this is an issue with what I am trying to do, with should, or with browserify?