1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

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
commit 1357a8e345

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 }
```