Debian Codegraph @

packages/babel-plugin-transform-object-super/test/fixtures/object-super/simple.js

raw
1 var a = {
2 name() {
3 return "Suyash";
4 }
5 };
6
7 var b = {
8 name() {
9 return super.name() + " Verma";
10 }
11 };
12
13 Object.setPrototypeOf(b, a);
14
15 expect(b.name()).toBe("Suyash Verma");