Add parens about constructor

This commit is contained in:
Kevin Sawicki 2016-07-06 15:45:35 -07:00
parent 56739e10e3
commit 2e02994277
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ describe('ipc module', function () {
assert.equal(a.bar, 1234)
assert.equal(a.anonymous.constructor.name, '')
assert.equal(a.getConstructorName(Object.create(null)), '')
assert.equal(a.getConstructorName(new class {}), '')
assert.equal(a.getConstructorName(new (class {})), '')
})
it('should search module from the user app', function () {

View file

@ -4,7 +4,7 @@ foo.baz = false
module.exports = {
foo: foo,
bar: 1234,
anonymous: new class {},
anonymous: new (class {}),
getConstructorName: function (value) {
return value.constructor.name
}