electron/spec/fixtures/module/function-with-missing-properties.js

14 lines
190 B
JavaScript
Raw Normal View History

exports.setup = function () {
const foo = {}
foo.bar = function () {
return delete foo.bar.baz && delete foo.bar
}
foo.bar.baz = function () {
return 3
}
return foo
}