1

JavaScript (ES6), 173 169 163 150 bytes
Let's have something totally different... and totally evil.
c=Object.freeze,c(''[g='__proto__']),c([].g),f=s=>(t=s.slice(),u=t.split`\n`,typeof s=='string'&&u.length<81&&u.every(l=>l.length<3)&&eval(t)(t)),c(f)
Usage: f('Hello, World!')
Try it online!