Skip to content

Commit

Permalink
ES6 style: fix some nits from phistuck@ on chromium-dev@
Browse files Browse the repository at this point in the history
R=dpapad@chromium.org
BUG=671426
NOTRY=true

Review-Url: https://codereview.chromium.org/2574833002
Cr-Commit-Position: refs/heads/master@{#438289}
  • Loading branch information
danbeam authored and Commit bot committed Dec 13, 2016
1 parent 4396e94 commit c5454c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/es6_chromium.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var fullyLoaded = new Promise(function(resolve) {
});

// ... some time later ...
loaded.then(startTheApp).then(maybeShowFirstRun);
fullyLoaded.then(startTheApp).then(maybeShowFirstRun);
```

**Documentation:** [link](http://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects)
Expand Down Expand Up @@ -636,13 +636,17 @@ for (var n of fibonacci) {
```js
// Object.assign
var o = Object.assign({a:true}, {b:true}, {c:true});
var o = Object.assign({a:true}, {b:true}, {c:true}); // {a: true, b: true, c: true}
'a' in o && 'b' in o && 'c' in o; // true
// Object.setPrototypeOf
Object.setPrototypeOf({}, Array.prototype) instanceof Array; // true
// Object.is
Object.is(null, null) // true
Object.is(NaN, NaN) // true
Object.is(-0, +0) // false, btw: -0 === +0 is true
// Object.getOwnPropertySymbols
```
Expand Down

0 comments on commit c5454c2

Please sign in to comment.