mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
9 lines
126 B
JavaScript
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;
|
|
|