Espruino/tests/test_json_stringify_recursive.js
2014-05-21 17:41:17 +01:00

10 lines
176 B
JavaScript

function foo() {
this.bar = new Bar(this);
console.log(this); // may assert fail
result = 1;
}
function Bar( fooThis ) {
this.fooThis = fooThis;
}
var f = new foo();