Skip to content

Commit 4fec885

Browse files
committed
#15 fixes
1 parent 6f5c895 commit 4fec885

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

es5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = {
105105
SwitchCase: 1,
106106
// continuation indent
107107
VariableDeclarator: 1, // indent is multiplier * indent = 1 * 2
108-
MemberExpression: 1, // indent is multiplier * indent = 1 * 2
108+
MemberExpression: 2, // indent is multiplier * indent = 1 * 2
109109
FunctionDeclaration: {parameters: 2},
110110
FunctionExpression: {parameters: 2},
111111
CallExpression: {arguments: 2}

test/es5/continuation.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
3+
var promise = window.Promise.resolve(true);
4+
promise.
5+
then(function (data) {
6+
return data;
7+
}).
8+
then(function (truthy) {
9+
return !truthy;
10+
}).
11+
catch(function () {
12+
return false;
13+
});

0 commit comments

Comments
 (0)