V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
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.

Definition at line 1077 of file v8.h.

Member Function Documentation

◆ BindToCurrentContext()

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

Binds the script to the currently entered context.

Definition at line 2030 of file api.cc.

◆ GetLineNumber()

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.

Definition at line 2052 of file api.cc.

◆ GetSourceMappingURL()

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

Data read from magic sourceMappingURL comments.

Definition at line 2094 of file api.cc.

◆ GetSourceURL()

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

Data read from magic sourceURL comments.

Definition at line 2080 of file api.cc.


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