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

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

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.js
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.js b/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.js
new file mode 100644
index 0000000000000000000000000000000000000000..73fdadafb2b31a7257618885f4300f2fca5cc9ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/resolve-this.js
@@ -0,0 +1,17 @@
+var Foo = (function () {
+ function Foo() {
+ }
+ Foo.prototype.bar = function () {
+ var _this = this;
+ var test = function () {
+ console.log(_this);
+ debugger;
+ };
+ test();
+ };
+ return Foo;
+}());
+function testFunction() {
+ new Foo().bar();
+}
+//# sourceMappingURL=resolve-this.js.map

Powered by Google App Engine
This is Rietveld 408576698