Skip to content

[BUG] Calling scriptCall on this throws an error that doesn't occur when calling it directly #295

@EliteMasterEric

Description

@EliteMasterEric
class EricsTestModule extends Module {

  // ...

  public function foo():Void {
    trace(scriptCall('bar')); // This works fine
    trace(this.scriptCall('bar')); // This throws an EInvalidAccess error
  }

  public function bar():Void {
    return "Hello, world!";
  }
}

Pretty sure it's an error specific to the implementation of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions