---
title: "PolyglotEngineWithJavaScript"
description: "Tests with code snippets referencing JavaScript (executed only when an implementation of JavaScript is around)."
kind: "class"
id: "com.oracle.truffle.tck.impl.PolyglotEngineWithJavaScript"
module: "truffle-tck"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/truffle-tck/com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html"
---

# ◆ PolyglotEngineWithJavaScript

[truffle-tck](../../../../../index.md) › [com.oracle.truffle.tck.impl](index.md) · Every page: [llms.txt](../../../../../llms.txt)

Class in [`com.oracle.truffle.tck.impl`](index.md).

```java
public class PolyglotEngineWithJavaScript
```

Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html) > `PolyglotEngineWithJavaScript`

Tests with code snippets referencing JavaScript (executed only when an implementation of JavaScript is around).

## Nested types

- [`PolyglotEngineWithJavaScript.Moment`](PolyglotEngineWithJavaScript.Moment.md) (class): No description.

## Constructors

### PolyglotEngineWithJavaScript()
<a id="&lt;init&gt;()"></a>`public PolyglotEngineWithJavaScript()`. Declared by the compiler. Creates a new PolyglotEngineWithJavaScript instance. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#<init>()`

## Methods

### initEngine()
<a id="initEngine()"></a>`public void initEngine()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#initEngine()`

### disposeEngine()
<a id="disposeEngine()"></a>`public void disposeEngine()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#disposeEngine()`

### testCallJavaScriptFunctionFromJava()
<a id="testCallJavaScriptFunctionFromJava()"></a>`public void testCallJavaScriptFunctionFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testCallJavaScriptFunctionFromJava()`

### callJavaScriptFunctionFromJava()
<a id="callJavaScriptFunctionFromJava()"></a>`public void callJavaScriptFunctionFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#callJavaScriptFunctionFromJava()`

### testCallJavaScriptFunctionsWithSharedStateFromJava()
<a id="testCallJavaScriptFunctionsWithSharedStateFromJava()"></a>`public void testCallJavaScriptFunctionsWithSharedStateFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testCallJavaScriptFunctionsWithSharedStateFromJava()`

### callJavaScriptFunctionsWithSharedStateFromJava()
<a id="callJavaScriptFunctionsWithSharedStateFromJava()"></a>`public void callJavaScriptFunctionsWithSharedStateFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#callJavaScriptFunctionsWithSharedStateFromJava()`

### testAccessFieldsOfJavaObject()
<a id="testAccessFieldsOfJavaObject()"></a>`public void testAccessFieldsOfJavaObject()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testAccessFieldsOfJavaObject()`

### testAccessFieldsOfJavaObjectWithConverter()
<a id="testAccessFieldsOfJavaObjectWithConverter()"></a>`public void testAccessFieldsOfJavaObjectWithConverter()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testAccessFieldsOfJavaObjectWithConverter()`

### accessFieldsOfJavaObject()
<a id="accessFieldsOfJavaObject()"></a>`public void accessFieldsOfJavaObject()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#accessFieldsOfJavaObject()`

### accessFieldsOfJavaObjectWithConverter()
<a id="accessFieldsOfJavaObjectWithConverter()"></a>`public void accessFieldsOfJavaObjectWithConverter()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#accessFieldsOfJavaObjectWithConverter()`

### testCreateJavaScriptFactoryForJavaClass()
<a id="testCreateJavaScriptFactoryForJavaClass()"></a>`public void testCreateJavaScriptFactoryForJavaClass()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testCreateJavaScriptFactoryForJavaClass()`

### createJavaScriptFactoryForJavaClass()
<a id="createJavaScriptFactoryForJavaClass()"></a>`public void createJavaScriptFactoryForJavaClass()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#createJavaScriptFactoryForJavaClass()`

### testCallJavaScriptClassFactoryFromJava()
<a id="testCallJavaScriptClassFactoryFromJava()"></a>`public void testCallJavaScriptClassFactoryFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testCallJavaScriptClassFactoryFromJava()`

### callJavaScriptClassFactoryFromJava()
<a id="callJavaScriptClassFactoryFromJava()"></a>`public void callJavaScriptClassFactoryFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#callJavaScriptClassFactoryFromJava()`

### testAccessJavaScriptArrayWithTypedElementsFromJava()
<a id="testAccessJavaScriptArrayWithTypedElementsFromJava()"></a>`public void testAccessJavaScriptArrayWithTypedElementsFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#testAccessJavaScriptArrayWithTypedElementsFromJava()`

### accessJavaScriptArrayWithTypedElementsFromJava()
<a id="accessJavaScriptArrayWithTypedElementsFromJava()"></a>`public void accessJavaScriptArrayWithTypedElementsFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#accessJavaScriptArrayWithTypedElementsFromJava()`

### tetsAccessJSONObjectProperties()
<a id="tetsAccessJSONObjectProperties()"></a>`public void tetsAccessJSONObjectProperties()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#tetsAccessJSONObjectProperties()`

### accessJavaScriptJSONObjectFromJava()
<a id="accessJavaScriptJSONObjectFromJava()"></a>`public void accessJavaScriptJSONObjectFromJava()`. Cite: `com/oracle/truffle/tck/impl/PolyglotEngineWithJavaScript.html#accessJavaScriptJSONObjectFromJava()`

## Inherited members

- From class [`Object`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html): [`clone`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone%28%29), [`equals`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`finalize`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize%28%29), [`getClass`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)
