mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Add parens about constructor
This commit is contained in:
@@ -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 () {
|
||||
|
||||
2
spec/fixtures/module/no-prototype.js
vendored
2
spec/fixtures/module/no-prototype.js
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user