diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-01 19:50:52 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-01 19:50:52 +0900 |
| commit | e76e358d98312b248f16637b32c22196b51aeb0f (patch) | |
| tree | eca2a8202310c2f3ee7f82772cb15802dc8428b3 /src/misc/aiscript/evaluator.ts | |
| parent | :art: (diff) | |
| download | sharkey-e76e358d98312b248f16637b32c22196b51aeb0f.tar.gz sharkey-e76e358d98312b248f16637b32c22196b51aeb0f.tar.bz2 sharkey-e76e358d98312b248f16637b32c22196b51aeb0f.zip | |
Fix bug
Diffstat (limited to 'src/misc/aiscript/evaluator.ts')
| -rw-r--r-- | src/misc/aiscript/evaluator.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 0de924e81f..fef2d4f3a5 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -113,16 +113,6 @@ export class ASEvaluator { } @autobind - public getVarByName(name: string): Variable { - const v = this.variables.find(x => x.name === name); - if (v !== undefined) { - return v; - } else { - throw new AiScriptError(`No such variable '${name}'`); - } - } - - @autobind private interpolate(str: string, scope: Scope) { return str.replace(/\{(.+?)\}/g, match => { const v = scope.getState(match.slice(1, -1).trim()); |