/** * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.traceur; import java.io.IOException; import java.net.URISyntaxException; import com.github.anba.es6draft.compiler.CompilationException; import com.github.anba.es6draft.parser.ParserException; import com.github.anba.es6draft.repl.global.ShellGlobalObject; import com.github.anba.es6draft.runtime.Realm; import com.github.anba.es6draft.runtime.internal.NativeCode; /** * */ final class TraceurTestGlobalObject extends ShellGlobalObject { TraceurTestGlobalObject(Realm realm) { super(realm); } static void testLoadInitializationScript() throws IOException { NativeCode.getScriptURL("v8legacy.js"); } @Override public void initializeScripted() throws IOException, URISyntaxException, ParserException, CompilationException { NativeCode.load(getRealm(), "v8legacy.js"); } }