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