question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSRT APIs for Proxy

See original GitHub issue

Currently target and handler as internal fields of JavascriptProxy.cpp and there is no way to retrieve them natively. Recently node started taking dependency on these fields natively. This breaks node on chakracore as chakracore doesn’t have these fields exposed via JSRT. Additionally as per ES6 spec, there is no way to check if an object is a proxy or not.

This issue is to track adding below JSRT APIs

  • GetTargetOfProxy
  • GetHandlerOfProxy
  • IsProxy

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jackhortoncommented, Mar 8, 2018

I agree with @dilijev about the design strategy. I don’t think there will be a perf impact to get the target and handler, but also we could perhaps pass null for those if we don’t want that information and are concerned about doing extra work.

1reaction
rhuanjlcommented, Mar 8, 2018

@jackhorton I was waiting on further comment before writing anything as the ask didn’t seem quite fixed yet.

I’ll have time to write the code this weekend if we can be sure what’s wanted before then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSRT APIs for Proxy #950 - chakra-core/ChakraCore - GitHub
Currently target and handler as internal fields of JavascriptProxy.cpp and there is no way to retrieve them natively. Recently node started taking ...
Read more >
Programming API proxies with JavaScript | Apigee Edge
js : This JavaScript gets the values of a few variables that are set when an API proxy is invoked. The JavaScript adds...
Read more >
How to use a Proxy API with Javascript - RapidAPI
In this article we will walk through how to use a proxy API with Javascript. The resulting list of proxies will then be...
Read more >
Oracle® Java Micro Edition Software Development Kit
Configuring the Web Browser and Proxy Settings. ... 17 JSR 135: Mobile Media API Support ... emulator's proxy server settings or web access...
Read more >
193.188.66.161 IP Address Details - IPinfo.io
Detects various methods used to mask a user's true IP address, including VPN detection, proxy detection, tor usage, relay usage, or a connection...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found