Espruino/tests/test_new_nested.js
Gordon Williams (u36) 472414461c new tests
2013-10-10 10:18:45 +01:00

13 lines
129 B
JavaScript

// test for nested constructors
function A(x) {
this.a = x;
}
function B() {
this.b = 42;
}
result = new A(new B()) == 42;