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

Side by Side Diff: test/webkit/class-syntax-extends-expected.txt

Issue 1231343003: Scoping error caused crash in CallICNexus::StateFromFeedback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix webkit tests. Created 5 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/regress/regress-503565.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests for ES6 class syntax "extends" 1 Tests for ES6 class syntax "extends"
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS (new Base) instanceof Base is true 6 PASS (new Base) instanceof Base is true
7 PASS Object.getPrototypeOf(new Base) is Base.prototype 7 PASS Object.getPrototypeOf(new Base) is Base.prototype
8 PASS (new Derived) instanceof Derived is true 8 PASS (new Derived) instanceof Derived is true
9 PASS Object.getPrototypeOf(new Derived) is Derived.prototype 9 PASS Object.getPrototypeOf(new Derived) is Derived.prototype
10 PASS Object.getPrototypeOf(Derived.prototype) is Base.prototype 10 PASS Object.getPrototypeOf(Derived.prototype) is Base.prototype
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 PASS namespace = {}; namespace.A = class { constructor() { } }; namespace.B = cl ass extends new namespace.A { constructor() { } } threw exception TypeError: Cla ss extends value [object Object] is not a function or null. 51 PASS namespace = {}; namespace.A = class { constructor() { } }; namespace.B = cl ass extends new namespace.A { constructor() { } } threw exception TypeError: Cla ss extends value [object Object] is not a function or null.
52 PASS namespace = {}; namespace.A = class { constructor() { } }; namespace.B = cl ass extends new namespace.A() { constructor() { } } threw exception TypeError: C lass extends value [object Object] is not a function or null. 52 PASS namespace = {}; namespace.A = class { constructor() { } }; namespace.B = cl ass extends new namespace.A() { constructor() { } } threw exception TypeError: C lass extends value [object Object] is not a function or null.
53 PASS x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { nam espace.B = class extends (x++, namespace.A) { constructor() { } } } catch (e) { } x is 2 53 PASS x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { nam espace.B = class extends (x++, namespace.A) { constructor() { } } } catch (e) { } x is 2
54 PASS x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { nam espace.B = class extends (namespace.A, x++) { constructor() { } } } catch (e) { } x is 2 54 PASS x = 1; namespace = {}; namespace.A = class { constructor() { } }; try { nam espace.B = class extends (namespace.A, x++) { constructor() { } } } catch (e) { } x is 2
55 PASS Object.getPrototypeOf((class { constructor () { } }).prototype) is Object.p rototype 55 PASS Object.getPrototypeOf((class { constructor () { } }).prototype) is Object.p rototype
56 PASS Object.getPrototypeOf((class extends null { constructor () { super(); } }). prototype) is null 56 PASS Object.getPrototypeOf((class extends null { constructor () { super(); } }). prototype) is null
57 PASS new (class extends undefined { constructor () { this } }) threw exception T ypeError: Class extends value undefined is not a function or null. 57 PASS new (class extends undefined { constructor () { this } }) threw exception T ypeError: Class extends value undefined is not a function or null.
58 PASS new (class extends undefined { constructor () { super(); } }) threw excepti on TypeError: Class extends value undefined is not a function or null. 58 PASS new (class extends undefined { constructor () { super(); } }) threw excepti on TypeError: Class extends value undefined is not a function or null.
59 PASS x = {}; new (class extends undefined { constructor () { return x; } }) thre w exception TypeError: Class extends value undefined is not a function or null. 59 PASS x = {}; new (class extends undefined { constructor () { return x; } }) thre w exception TypeError: Class extends value undefined is not a function or null.
60 PASS y = 12; new (class extends undefined { constructor () { return y; } }) thre w exception TypeError: Class extends value undefined is not a function or null. 60 PASS y = 12; new (class extends undefined { constructor () { return y; } }) thre w exception TypeError: Class extends value undefined is not a function or null.
61 FAIL class x {}; new (class extends null { constructor () { return new x; } }) i nstanceof x should be true. Threw exception TypeError: x is not a function 61 PASS class x {}; new (class extends null { constructor () { return new x; } }) i nstanceof x is true
62 PASS new (class extends null { constructor () { this; } }) threw exception Refer enceError: this is not defined. 62 PASS new (class extends null { constructor () { this; } }) threw exception Refer enceError: this is not defined.
63 PASS new (class extends null { constructor () { super(); } }) threw exception Ty peError: function () {} is not a constructor. 63 PASS new (class extends null { constructor () { super(); } }) threw exception Ty peError: function () {} is not a constructor.
64 PASS x = {}; new (class extends null { constructor () { return x } }) is x 64 PASS x = {}; new (class extends null { constructor () { return x } }) is x
65 PASS y = 12; new (class extends null { constructor () { return y; } }) threw exc eption TypeError: Derived constructors may only return object or undefined. 65 PASS y = 12; new (class extends null { constructor () { return y; } }) threw exc eption TypeError: Derived constructors may only return object or undefined.
66 FAIL class x {}; new (class extends null { constructor () { return new x; } }) i nstanceof x should be true. Threw exception TypeError: x is not a function 66 PASS class x {}; new (class extends null { constructor () { return new x; } }) i nstanceof x is true
67 PASS x = null; Object.getPrototypeOf((class extends x { }).prototype) is null 67 PASS x = null; Object.getPrototypeOf((class extends x { }).prototype) is null
68 PASS Object.prototype.isPrototypeOf(class { }) is true 68 PASS Object.prototype.isPrototypeOf(class { }) is true
69 PASS Function.prototype.isPrototypeOf(class { }) is true 69 PASS Function.prototype.isPrototypeOf(class { }) is true
70 PASS successfullyParsed is true 70 PASS successfullyParsed is true
71 71
72 TEST COMPLETE 72 TEST COMPLETE
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-503565.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698