import { Node , ESTree } from "../../Node" ; import { BaseClosure , } from '../../Closure' ; import { Messages } from '../../Message' ; import { Interpreter } from '../../../interpreter/main' ; export function literalHandler ( this , node ) { return ( ) => { if ( node . regex ) { return new RegExp ( node . regex . pattern , node . regex . flags ) ; } return node . value ; } ; }