Don't crash on app->thumb in full TD
This commit is contained in:
Родитель
3250f93cfc
Коммит
c79d8700f4
|
@ -1783,6 +1783,10 @@ module TDev.AST
|
||||||
this.lintJavaScript(t.args[2].getStringLiteral(), /async/.test(t.prop().getName()))
|
this.lintJavaScript(t.args[2].getStringLiteral(), /async/.test(t.prop().getName()))
|
||||||
break;
|
break;
|
||||||
case "thumb":
|
case "thumb":
|
||||||
|
if (!Cloud.isRestricted()) {
|
||||||
|
this.markError(t, lf("app->thumb not supported in full Touch Develop"))
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!checkArgumentCount(2)) return;
|
if (!checkArgumentCount(2)) return;
|
||||||
if (!this.inShim)
|
if (!this.inShim)
|
||||||
this.markError(t, lf("TD213: app->thumb only supported inside of {asm:}"))
|
this.markError(t, lf("TD213: app->thumb only supported inside of {asm:}"))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче