Skip to content

Commit 64427a9

Browse files
author
Yui T
committed
Remove checking for scriptTarget before setting parsing context for classLikeDeclaration
1 parent feabcd0 commit 64427a9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4756,9 +4756,7 @@ module ts {
47564756
function parseClassDeclarationOrExpression(fullStart: number, decorators: NodeArray<Decorator>, modifiers: ModifiersArray, kind: SyntaxKind): ClassLikeDeclaration {
47574757
// In ES6 specification, All parts of a ClassDeclaration or a ClassExpression are strict mode code
47584758
let savedStrictModeContext = inStrictModeContext();
4759-
if (languageVersion >= ScriptTarget.ES6) {
4760-
setStrictModeContext(true);
4761-
}
4759+
setStrictModeContext(true);
47624760

47634761
var node = <ClassLikeDeclaration>createNode(kind, fullStart);
47644762
node.decorators = decorators;

src/server/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ module ts.server {
6868
};
6969
}
7070

71-
private processRequest<T extends protocol.Request>(command: string, arguments?: any): T {
71+
private processRequest<T extends protocol.Request>(command: string, args?: any): T {
7272
var request: protocol.Request = {
7373
seq: this.sequence++,
7474
type: "request",
75-
command: command,
76-
arguments: arguments
75+
arguments: args,
76+
command
7777
};
7878

7979
this.writeMessage(JSON.stringify(request));

0 commit comments

Comments
 (0)