<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC shell] Don't put empty arguments array to VM."
   href="https://bugs.webkit.org/show_bug.cgi?id=154516#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC shell] Don't put empty arguments array to VM."
   href="https://bugs.webkit.org/show_bug.cgi?id=154516">bug 154516</a>
              from <span class="vcard"><a class="email" href="mailto:annulen&#64;yandex.ru" title="Konstantin Tokarev &lt;annulen&#64;yandex.ru&gt;"> <span class="fn">Konstantin Tokarev</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=154516#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=271884&amp;action=diff" name="attach_271884" title="Patch">attachment 271884</a> <a href="attachment.cgi?id=271884&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; I don't think the current approach is good because we would like to assume
&gt; that there is an empty `arguments` if the CLI does not pass any arguments.
&gt; 
&gt; How about the following idea?
&gt; 1. adding an Option (see runtime/Options.h), that controls exposing the
&gt; `arguments`. Now, we can control this behavior with the environment variable
&gt; JSC_XXX (If you add an option XXX, we can switch it with the environment
&gt; variable JSC_XXX)
&gt; 3. adding a ruby function notExposeArguments() in run-jsc-stress-tests,
&gt; which defines JSC_XXX environment variable before executing the command.
&gt; (Let's define addEnvVar(X, Y). And calling it as def notExposeArguments
&gt; addEnvVar(&quot;JSC_XXX&quot;, &quot;true&quot;))
&gt; 4. defining the annotation &quot;//&#64; notExposeArguments&quot; instead of &quot;//&#64; skip&quot;</span >

Problem is that I use run-layout-jsc, which does not support annotations, and my initial motivation for this change was to allow this test to pass without &#64; skip annotation.

Though run-layout-jsc may unconditionally use this mode.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>