-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated stacktrace cleaner and ast tests
- Loading branch information
1 parent
82ca93e
commit 0b78aba
Showing
5 changed files
with
121 additions
and
6 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
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,43 @@ | ||
// Test ObjectPattern | ||
const {c, d} = {c: 5, d: 7}; | ||
// Test Array Pattern | ||
let [a, b] = ["alpha", "beta"]; | ||
// Test normal variables | ||
var x = 5, y = 6; | ||
// Test first reassignment | ||
x = y; | ||
|
||
// Test function | ||
function demoFunction() { | ||
} | ||
|
||
// Test simple class | ||
class SimpleClass { | ||
constructor() { | ||
} | ||
} | ||
|
||
// Test class with static variables | ||
class StaticClass extends SimpleClass { | ||
data = ["Static data"]; | ||
constants; | ||
} | ||
|
||
// Test try-catch | ||
function tryCatch() { | ||
try { | ||
let demo = 5; | ||
} catch { | ||
// Do nothing | ||
} | ||
} | ||
|
||
// Test async function | ||
async function asyncFunction() { | ||
return 5; | ||
} | ||
|
||
// Test second Reassignment | ||
x = 5; | ||
// Assignment to not defined var | ||
z = x + y; |
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
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
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