Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.ts

Issue 1884213003: DevTools: teach SourceMapNamesResolver to resolve "this" object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ids
Patch Set: fix tesst Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.ts
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.ts b/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.ts
new file mode 100644
index 0000000000000000000000000000000000000000..29b376187bb3d614082b81acd276518f878036ed
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.ts
@@ -0,0 +1,16 @@
+class Foo {
+ constructor() {
+ }
+
+ bar() {
+ let test = () => {
+ console.log(this);
+ debugger;
+ };
+ test();
+ }
+}
+
+function testFunction() {
+ new Foo().bar();
+}

Powered by Google App Engine
This is Rietveld 408576698