Skip to content

Commit

Permalink
Added super-method-call-loose tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shrirambalaji committed Nov 11, 2019
1 parent 76cb201 commit 5f1210c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
@@ -0,0 +1,12 @@
"use strict";
class Base {
method() {
return 'Hello!';
}
}

class Derived extends Base {
method() {
return super.method?.()
}
}
@@ -0,0 +1,3 @@
{
"plugins": [["proposal-optional-chaining", { "loose": true }]]
}
@@ -0,0 +1,15 @@
"use strict";

class Base {
method() {
return 'Hello!';
}

}

class Derived extends Base {
method() {
return super.method == null ? void 0 : super.method();
}

}

0 comments on commit 5f1210c

Please sign in to comment.