use of com.github.anba.es6draft.util.SystemConsole in project es6draft by anba.
the class Test262Parser method runTest.
@Test
public void runTest() throws Throwable {
RuntimeContext context = realms.newContext(new SystemConsole(), test);
ScriptLoader loader = new ScriptLoader(context);
Source source = new Source(test.toFile(), test.getScript().toString(), 1);
String sourceCode = new String(Files.readAllBytes(test.toFile()), StandardCharsets.UTF_8);
if (test.isModule()) {
loader.parseModule(source, sourceCode);
} else {
loader.parseScript(source, sourceCode);
}
}
Aggregations