---
source: crates/rascal/src/program.rs
expression: parsed
input_file: samples/as2_errors/special_functions/loadvariables.as
---
error: Compile error
╭▸ loadvariables.as:1:1
│
1 │ loadVariables();
│ ━━━━━━━━━━━━━━━ Wrong number of parameters; loadVariables requires between 2 and 3.
2 │ loadVariables("http://ruffle.rs");
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Wrong number of parameters; loadVariables requires between 2 and 3.
3 │ loadVariables("http://ruffle.rs", "window", "get", "foo");
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Wrong number of parameters; loadVariables requires between 2 and 3.
4 │ loadVariables("http://ruffle.rs", "window", x);
│ ━ Method name must be GET or POST.
5 │ loadVariables("http://ruffle.rs", "window", "foo");
╰╴ ━━━━━ Method name must be GET or POST.