Debian Codegraph @

packages/babel-plugin-transform-classes/test/fixtures/extend-builtins/super-called/exec.js

raw symbols SCIP
1 var called = false;
2
3 var env = {
4 Array: function Array() {
5 called = true;
6 }
7 };
8
9 // We need to use "with" to avoid leaking the modified Array to other tests.
10 with (env) {
11 class List extends Array {};
12 new List();
13
14 expect(called).toBe(true);
15 }