Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf
2017-11-23 17:01:23 +08:00
+2 -2
View File
@@ -707,7 +707,7 @@ Object.getOwnPropertyDescriptors(obj)
// enumerable: true,
// configurable: true },
// bar:
// { get: [Function: bar],
// { get: [Function: get bar],
// set: undefined,
// enumerable: true,
// configurable: true } }
@@ -761,7 +761,7 @@ const target2 = {};
Object.defineProperties(target2, Object.getOwnPropertyDescriptors(source));
Object.getOwnPropertyDescriptor(target2, 'foo')
// { get: undefined,
// set: [Function: foo],
// set: [Function: set foo],
// enumerable: true,
// configurable: true }
```