'use strict' ; require ( 'classlist-polyfill' ) ; require ( 'console-polyfill' ) ; require ( 'raf' ) . polyfill ( ) ; if ( ! Object . hasOwnProperty ( 'name' ) ) { Object . defineProperty ( Function . prototype , 'name' , { get : function getName ( ) { const matches = this . toString ( ) . match ( /^\s*function\s*([a-zA-z\_\$]*)\s*\(/ ) ; const name = matches && matches . length > 1 ? matches [ 1 ] : '' ; Object . defineProperty ( this , 'name' , { value : name } ) ; return name ; } , } ) ; }