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

Unified Diff: test/webkit/class-syntax-super-expected.txt

Issue 1467473002: Install ConstructNonConstructable as construct stub for non-constructables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 1 month 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
« no previous file with comments | « test/webkit/class-syntax-super.js ('k') | test/webkit/exception-for-nonobject-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/class-syntax-super-expected.txt
diff --git a/test/webkit/class-syntax-super-expected.txt b/test/webkit/class-syntax-super-expected.txt
index 2f38f5ae388bbb433c672fedc36e2eb116062992..b45b6b7ad21a1b2d4e0c861a85ca30564b497674 100644
--- a/test/webkit/class-syntax-super-expected.txt
+++ b/test/webkit/class-syntax-super-expected.txt
@@ -29,12 +29,12 @@ PASS x instanceof Base is false
PASS new (class extends Base { constructor() { } }) threw exception ReferenceError: this is not defined.
PASS new (class extends Base { constructor() { return 1; } }) threw exception TypeError: Derived constructors may only return object or undefined.
PASS new (class extends null { constructor() { return undefined } }) threw exception ReferenceError: this is not defined.
-PASS new (class extends null { constructor() { super(); return undefined } }) threw exception TypeError: function () {} is not a constructor.
+PASS new (class extends null { constructor() { super(); return undefined } }) threw exception TypeError: super is not a constructor.
PASS x = { }; new (class extends null { constructor() { return x } }); is x
PASS x instanceof Object is true
PASS new (class extends null { constructor() { } }) threw exception ReferenceError: this is not defined.
PASS new (class extends null { constructor() { return 1; } }) threw exception TypeError: Derived constructors may only return object or undefined.
-PASS new (class extends null { constructor() { super() } }) threw exception TypeError: function () {} is not a constructor.
+PASS new (class extends null { constructor() { super() } }) threw exception TypeError: super is not a constructor.
PASS new (class { constructor() { super() } }) threw exception SyntaxError: 'super' keyword unexpected here.
PASS function x() { super(); } threw exception SyntaxError: 'super' keyword unexpected here.
PASS new (class extends Object { constructor() { function x() { super() } } }) threw exception SyntaxError: 'super' keyword unexpected here.
« no previous file with comments | « test/webkit/class-syntax-super.js ('k') | test/webkit/exception-for-nonobject-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698