Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/js-interpreter.
Something went wrong. Try again.
123456789101112test("basic functionality", () => { function Foo() { this.x = 123; }
expect(Foo.prototype.constructor).toBe(Foo);
const foo = new Foo(); expect(foo.constructor).toBe(Foo); expect(foo.x).toBe(123);});