memoise and bind member expression decorators - fixes #1296

This commit is contained in:
Sebastian McKenzie
2015-04-20 06:16:20 +01:00
parent 7d4ecea8fb
commit 9360860601
4 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
var foo = {
bar: function () { assert.equal(this, foo); },
foobar: {
bar: function () { assert.equal(this, foo.foobar); },
}
};
(class {
@foo.bar
@foo.foobar.bar
bar() {}
});
({
@foo.bar
@foo.foobar.bar
bar() {}
});