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

9 lines
126 B
JavaScript

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