---
name: "JavaScript::Script"
section: "3pm"
platform: "linux"
package: "libjavascript-perl"
version: "1.16-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/JavaScript::Script"
---

# JavaScript::Script(3pm)

Pre-compiled JavaScript

## NAME

JavaScript::Script - Pre-compiled JavaScript

## DESCRIPTION

If you have a big script that has to be executed over and over again compilation time may be significant. The method `"compile"` in `"JavaScript::Context"` provides a mean of returning a pre-compiled script which is an instance of this class which can be executed without the need of compilation.

## INTERFACE

### INSTANCE METHODS

- exec

  Executes the script and returns the result of the last statement.
