Fix OPTION STRICT
This commit is contained in:
1 parent
025fb673d4
commit
ddc1e0c299
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user