Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26184

Re: alternatives to eval

From Sean Hagen <sean.hagen@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: alternatives to eval
References <9603e9d2-1496-4971-9bbe-e4f08e713310@googlegroups.com>
Date 2014-11-21 10:05 -0800
Message-ID <87lhn4l98f.fsf@gmail.com> (permalink)

Show all headers | View raw


> 'alert(1)'.replace(/.+/,eval)

This one seems to actually send 'alert(1)' to the eval function,
although I'm not entirely sure how.

> function::['alert'](1)

No idea on this one, running it in the Chrome Dev console does nothing.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

alternatives to eval gandalf23@mail.com - 2014-11-21 08:23 -0800
  Re: alternatives to eval Bala <k.balamurugan@gmail.com> - 2014-11-21 09:34 -0800
    Re: alternatives to eval gandalf23@mail.com - 2014-11-21 11:10 -0800
  Re: alternatives to eval Sean Hagen <sean.hagen@gmail.com> - 2014-11-21 10:05 -0800
    Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-21 20:01 +0100
      Re: alternatives to eval gandalf23@mail.com - 2014-11-21 11:48 -0800
        Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-21 21:09 +0100
          Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-21 22:41 +0100
            Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-26 22:11 +0100
              Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-27 00:28 +0100
                Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-27 10:37 +0100
                Re: alternatives to eval "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-27 11:38 +0100
                Re: alternatives to eval Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-27 12:13 +0100
          Re: alternatives to eval gandalf23@mail.com - 2014-11-21 14:19 -0800

csiph-web