Fix OPTION STRICT

This commit is contained in:
otya128 committed 2017-01-21 23:18:26 +09:00
1 parent 025fb673d4
commit ddc1e0c299
1 file changed
+4
+4
View File
@@ -126,6 +126,10 @@ class Function
{
//local変数をあたる
//それでもだめならOPTION STRICTならエラー
if (c.isStrictMode)
{
throw new UndefinedVariable();
}
this.variable[name] = VMVariable(var = ++variableIndex, c.getType(name));
}
return var;