I'm starting with JavaScript and the Rhino engine. I know the ECMAScript 262 specification. I need to know what features, e.g. functions/objects/etc are defined by the Rhino JavaScript engine beyond the ECMA standard. Most examples just feature print
, Packages
and import*
but I wasn't able to find an exhaustive list.
问问题
479 次
2 回答
2
这不是一个详尽的列表,但我有一个非标准 ES 功能的兼容表。看看 Rhino 专栏——http: //kangax.github.com/es5-compat-table/non-standard/。
请注意,Rhino 的功能集与 SpiderMonkey(Firefox 中的最新 JS 引擎)非常接近。不过也有区别。例如,Rhino 在函数上没有“调用者”属性,这与 SpiderMonkey 不同。Rhino 支持e4x但不支持表达式闭包。它看起来或多或少像 SpiderMonkey 的一个子集,尽管可能存在我不知道的非标准功能(在这种情况下,我很乐意将它们添加到表格中)。
于 2011-03-21T05:14:18.400 回答
1
See predefined properties here: https://developer.mozilla.org/en/Rhino_Shell#Predefined_Properties
This is generally the best page about Rhino and it's JS features: https://developer.mozilla.org/en/Rhino_Shell
于 2011-03-22T13:16:19.560 回答