forked from jquery/esprima
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that strict mode reserved word binding throw an error.
Fixes jquery#1171 Closes jquerygh-1283
- Loading branch information
Showing
19 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_implements.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; implements = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_interface.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; interface = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_let.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":37,"lineNumber":1,"column":38,"message":"Error: Line 1: Unexpected token =","description":"Unexpected token ="} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; let = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_package.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; package = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_private.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; private = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_protected.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; protected = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_public.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; public = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_static.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; static = 1; } |
1 change: 1 addition & 0 deletions
1
test/fixtures/invalid-syntax/strict_assignment_yield.failure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"index":33,"lineNumber":1,"column":34,"message":"Error: Line 1: Use of future reserved word in strict mode","description":"Use of future reserved word in strict mode"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function hello() { "use strict"; yield = 1; } |