Skip to content

Commit

Permalink
test for #1454
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed May 31, 2018
1 parent 0d20a0e commit d484396
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_getter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,13 @@ const obj = new Example();
obj.foobar = "world";
results.push(obj.hello); // "world"

result = results=="c,test,,1,world";
// https://github.com/espruino/Espruino/issues/1454
var jsobj = {
_prop : {a:'astring',b:1234},
get prop() { return this._prop; }
};
// accessing jsobj.prop works, jsobj.prop.a doesn't!
results.push(jsobj.prop.a);


result = results=="c,test,,1,world,astring";

0 comments on commit d484396

Please sign in to comment.