V8 API Reference Guide for node.js v9.10.0 - v9.11.1
Public Member Functions | Static Public Attributes | List of all members
v8::UnboundScript Class Reference

#include <v8.h>

Public Member Functions

Local< ScriptBindToCurrentContext ()
 
int GetId ()
 
Local< ValueGetScriptName ()
 
Local< ValueGetSourceURL ()
 
Local< ValueGetSourceMappingURL ()
 
int GetLineNumber (int code_pos)
 

Static Public Attributes

static const int kNoScriptId = 0
 

Detailed Description

A compiled JavaScript script, not yet tied to a Context.

Member Function Documentation

Local<Script> v8::UnboundScript::BindToCurrentContext ( )

Binds the script to the currently entered context.

int v8::UnboundScript::GetLineNumber ( int  code_pos)

Returns zero based line number of the code_pos location in the script. -1 will be returned if no information available.

Local<Value> v8::UnboundScript::GetSourceMappingURL ( )

Data read from magic sourceMappingURL comments.

Local<Value> v8::UnboundScript::GetSourceURL ( )

Data read from magic sourceURL comments.


The documentation for this class was generated from the following file: