简体   繁体   English

浏览器中Javascript的实例评估

[英]Instance Eval in Javascript around browsers

From Coffeekup and JAML 's source, (while working on question ), we can see a way to hack ruby's instance eval into Javascript ( JAML author explains more ). CoffeekupJAML的来源,(在处理问题时 ),我们可以看到一种方法将ruby的实例eval破解为Javascript( JAML作者解释更多 )。 It involves decompiling the function, and evaluating it around a with block. 它涉及反编译函数,并围绕with块进行评估。

The question is: is this supported all around browsers/js runtimes? 问题是:这是否支持所有浏览器/ js运行时? I know it works on firefox, opera and chrome, but toString on function is not consistent among platforms , hence the question. 我知道它适用于firefox,opera和chrome,但是函数上的toString在平台之间 并不 一致 ,因此问题。

我已经检查过了,它确实适用于所有浏览器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM