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:
commit
1357a8e345
@ -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 }
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user