selenium cannot execute webpack related code?

I want to use selenium to execute this code to get the token, but when I execute it like this

”driver.execute_script(‘(webpackChunkdiscord_app.push([[”],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()’)”

He reported an error saying m is not defined.

But if you execute this directly in the browser’s developer console

‘(webpackChunkdiscord_app.push([[”],{},e=>{m=[];for(let c in e.c)m.push(e.c[ c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()’

The code works fine

I want to execut this code use selenium ,please, who can help me!!