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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt

Issue 2135853002: [DevTools] Better heuristic for detecting object literals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/console/console-eval-object-literal-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt b/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt
index d88e126b15ebfbafbbef76a92a985b55c776ffee..9bb1912fc6debc2202a501b2cd99bd47b9f30249 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-eval-object-literal-expected.txt
@@ -4,8 +4,25 @@ Tests that evaluating object literal in the console correctly reported.
Object {a: 1, b: 2}
{a:1}
Object {a: 1}
-{var a = 1; eval("{a :1, b:2 }");}
-VM:1 Uncaught SyntaxError: Unexpected identifier
+{var a = 1; eval("{ a:1, b:2 }");}
+ VM:1 Uncaught SyntaxError: Unexpected token :(…)
+(anonymous function) @ VM:1
{ for (var i = 0; i < 5; ++i); }
-VM:1 Uncaught SyntaxError: Unexpected token var
+undefined
+{ a: 4 }),({ b: 7 }
+VM:1 Uncaught SyntaxError: Unexpected token )
+{ let a = 4; a; }
+4
+{ let a = 4; }; { let b = 5; };
+undefined
+{ a: 4 } + { a: 5 }
+"[object Object][object Object]"
+{ a: 4 }, { a: 5 }
+Object {a: 5}
+var foo = 4;
+undefined
+{ a: foo++ }
+Object {a: 4}
+foo;
+5

Powered by Google App Engine
This is Rietveld 408576698