Skip to content

Commit

Permalink
update typescript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gracepark committed Nov 18, 2024
1 parent b815887 commit f179dc0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions test-examples/flat/src/thisTypescriptTest.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
(function() {
this.a = 0;
baz(() => this);
})()
class Safe {
contents: string;

function foo() {
this.a = 0;
baz(() => this)
constructor(contents: string) {
this.contents = contents;
}

printContents() {
console.log(this.contents);
}
}

var foo = function() {
this.a = 0;
var message = "Some message text"
baz(() => this);
}
};
19 changes: 10 additions & 9 deletions test-examples/legacy/src/thisTypescriptTest.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
(function() {
this.a = 0;
baz(() => this);
})()
class Safe {
contents: string;

function foo() {
this.a = 0;
baz(() => this)
constructor(contents: string) {
this.contents = contents;
}

printContents() {
console.log(this.contents);
}
}

var foo = function() {
this.a = 0;
var message = "Some message text"
baz(() => this);
}
};

0 comments on commit f179dc0

Please sign in to comment.