GitShow/tj/callsite
tj

callsite

node.js access to v8's "raw" CallSites -- useful for custom traces, c-style assertions, getting the line number in execution etc

by tj
Star on GitHubForknpm

JavaScript

248 stars11 forks5 contributorsQuiet · 11y agoSince 2011MIT

Meet the team

See all 5 on GitHub →
tj
tj17 contributions
humanchimp
humanchimp1 contribution
tchollingsworth
tchollingsworth1 contribution
prescod
prescod1 contribution

Languages

View on GitHub →
JavaScript96.7%
Makefile3.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 11y ago
See all on GitHub →
kristianoye
Not getting all framesOpenIssue

I am working on a game that uses the callstack to perform security checks. I create virtual filenames to store a filename and an instance ID so I can locate the actual object instance using the information provided by callsite. I do not appear to be getting the entire stack trace, though (my virtual scripts don't appear in the trace, now). I am running Node 8.9.3 on Windows 10 for development. Produces a stack like: Visual Studio on the other hand shows my callstack with more than twice as many frames (see attached). Why the discrepancy? How do I get ALL the frames on the stack? !callstack2vs (Updated with better example)

kristianoye · 8y ago
charlierudolph
Release 1.0.1OpenIssue

Could you please release a new version to get rid of the npm warning: This has already been fixed, but until a new version is released this warning will still appear

charlierudolph · 8y ago
vjpr
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to themOpenIssue

When in strict mode ( at the top of the file) throws an error. This came up for me because Babel's require-hook was transpiling this file - yes i know it probably shouldn't. A nasty bug though because it occurs while the stack trace has been replaced, which makes it hard to find, printing an obscure message to the console. The workarounds: configure Babel to blacklist to avoid adding strict to the top of the file. configure Babel to ignore . Regardless I propose the following change to make sure the error gets thrown if for some reason is placed at the top of this file:

vjpr · 10y ago

Recent fixes

View closed PRs →
EightArmCode
License not passing security checks for npm packageClosedIssue

Can you please publish the latest version of this to npm? The license doesn't appear to be in package.json in the npm module.

EightArmCode · 2w ago
prescod
Make license machine readable as per NPM&SPDXMergedPR
prescod · 1y ago
ralphtheninja
add repository property to package.json to get rid of npm warning during installMergedPR
ralphtheninja · 11y ago
Structured data for AI agents

Repository: tj/callsite. Description: node.js access to v8's "raw" CallSites -- useful for custom traces, c-style assertions, getting the line number in execution etc Stars: 248, Forks: 11. Primary language: JavaScript. Languages: JavaScript (96.7%), Makefile (3.3%). License: MIT. Open PRs: 1, open issues: 5. Last activity: 11y ago. Community health: 42%. Top contributors: tj, humanchimp, tchollingsworth, prescod.

·@ofershap

Replace github.com with gitshow.dev