New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

v8stack

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v8stack

Access V8 error stack traces

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
15
Maintainers
1
Weekly downloads
 
Created
Source

v8stack is an npm package for accessing V8's error stack traces.

Installation

npm install v8stack

Usage

// Import the `v8stack` package
var v8stack = require("v8stack");

// Enable the capture of V8's stack traces
v8stack.enable();

// Access V8's stack trace of an error object
var error = new Error();
var errorStack = v8stack.evaluate(error);
console.log(errorStack[0].getTypeName());

// If wanted, the capture can be stopped
v8stack.disable();

// Beware that error stacks are evaluated lazily.
// Evaluation can be triggered by calling `v8stack.get(error)`
// or by evaluating `error.stack`.
// After invoking `v8stack.disable()`, calls to `v8stack.evaluate(error)`
// with errors whose stack evaluation hasn't been trigerred
// will return 'undefined'.

Keywords

V8

FAQs

Package last updated on 21 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts