[英]How to pass command line arguments to script in v8?
在./shell my.js-3之后,stil表示“未定义参数”,我认为其中应包含“ 3”。
As per http://code.google.com/p/v8/issues/detail?id=1477 , this feature was broken for a while, and then fixed. 根据http://code.google.com/p/v8/issues/detail?id=1477 ,此功能已被破坏了一段时间,然后修复。 Are you running the latest version? 您正在运行最新版本吗?
== EDIT == ==编辑==
As pointed out by @dalibocai, the V8 shell
command doesn't support the --
notation to pass arguments, the d8
script interpreter does however. 正如@dalibocai指出的那样,V8 shell
命令不支持--
表示法来传递参数,但是d8
脚本解释器支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.