Guest User

Untitled

a guest
Jan 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class SuperClass {
  2. constructor(){}
  3.  
  4. async method() {
  5. return;
  6. }
  7. }
  8.  
  9. class ExtendClass extends SuperClass {
  10. constructor() {
  11. super();
  12. }
  13.  
  14. async method() {
  15. return super.method();
  16. }
  17. }
  18.  
  19. SyntaxError: 'super' keyword unexpected here
  20. at Object.<anonymous> (Path/To/File.js:line:character)
Add Comment
Please, Sign In to add comment