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

14 lines
197 B
JavaScript
Raw Normal View History

exports.setup = function () {
2020-03-20 20:28:31 +00:00
const foo = {};
foo.bar = function () {
2020-03-20 20:28:31 +00:00
return delete foo.bar.baz && delete foo.bar;
};
foo.bar.baz = function () {
2020-03-20 20:28:31 +00:00
return 3;
};
2020-03-20 20:28:31 +00:00
return foo;
};