New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decorators 2 Transform [WIP] #6107

Closed
wants to merge 23 commits into
base: master
from
Commits
Jump to file or symbol
Failed to load files and symbols.
+20 −0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Add failing test for instanceof

  • Loading branch information...
peey committed Sep 16, 2017
commit 96f51aad229eae0f817d7e436e50b330c5d97dae
@@ -0,0 +1,20 @@
function noopClassDec(constructor, heritage, elements) {
return {constructor, elements, finishers: []}
}
function noopMethodDec(descriptor) {
return {descriptor, extras: [], finishers: []}
}
@noopClassDec class Bar {
@noopMethodDec foo() {}
}
@noopClassDec class Foo {
@noopMethodDec bar() {}
}
let x = new Foo();
assert.ok(x instanceof Foo);
assert.ok(x instanceof Bar);
ProTip! Use n and p to navigate between commits in a pull request.