#vulnerable code 
                                @Test
    void jdk() throws IOException, ScriptException {
        String script = new String(Files.readAllBytes(new File("../dist/bundle.js").toPath()));
        ScriptEngine js = new ScriptEngineManager().getEngineByExtension("js");
        //js.eval(script);
        V8 v8 = V8.createV8Runtime();
        v8.registerJavaMethod(System.out, "println", "print", new Class[]{Object.class});
        v8.executeVoidScript("console={log:function(a){print(a);}};setTimeout=function(a){print(a);};clearTimeout=function(a){print(a);};" +
                "setInterval=function(a){print(a);};clearInterval=function(a){print(a);};" + script);
        Graphviz.useEngine(new GraphvizJdkEngine());
        assertThat(Graphviz.fromString("graph g {a--b}").render(SVG_STANDALONE).toString(), startsWith(START1_7));
    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    void jdk() {
        Graphviz.useEngine(new GraphvizJdkEngine());
        assertThat(Graphviz.fromString("graph g {a--b}").render(SVG_STANDALONE).toString(), startsWith(START1_7));
    }