import { Node , ESTree } from "../../Node" ; import { BaseClosure , } from '../../Closure' ; import { Messages } from '../../Message' ; import { Interpreter } from '../../../interpreter/main' ; export function superHandler ( this , node ) { return ( ) => { const currentScope = this . getCurrentScope ( ) ; const data = this . getScopeDataFromName ( 'super' , currentScope ) ; this . assertVariable ( data , 'super' , node ) ; return data [ 'super' ] ; } ; }