Fix OPTION STRICT
This commit is contained in:
1 parent
025fb673d4
commit
ddc1e0c299
1 file changed
+4
@@ -126,6 +126,10 @@ class Function
|
|||||||
{
|
{
|
||||||
//local変数をあたる
|
//local変数をあたる
|
||||||
//それでもだめならOPTION STRICTならエラー
|
//それでもだめならOPTION STRICTならエラー
|
||||||
|
if (c.isStrictMode)
|
||||||
|
{
|
||||||
|
throw new UndefinedVariable();
|
||||||
|
}
|
||||||
this.variable[name] = VMVariable(var = ++variableIndex, c.getType(name));
|
this.variable[name] = VMVariable(var = ++variableIndex, c.getType(name));
|
||||||
}
|
}
|
||||||
return var;
|
return var;
|
||||||
|
|||||||
Reference in new issue
Block a user