Espruino/tests/test_new_nested2_FAIL.js

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;