loadFileSync method

FileLoaded loadFileSync (String filename, String currentDirectory, Contexts options, Environment environment)

Loads a file synchronously. Expects an immediate return with an object containing { error: - error object if an error occurs filename: - full resolved path to file contents: - the contents of the file, as a string or codeunits: - the contents of the file, asBytes }

Implementation

FileLoaded loadFileSync(String filename, String currentDirectory,
        Contexts options, Environment environment) =>
    null;