-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using jsdom on Trireme (Windows) #80
Comments
Yes, that looks like an instance of the general problem that Trireme can't When these things come up, we really have three issues:
One example of this is an LDAP module someone was using that depended on https://www.npmjs.org/package/buffertools which uses native code to extend what the Buffer class can do. In this case the author of the LDAP module had reworked the code so that it It'd be interesting to know where "jsdom" uses contexify and why -- do you On Tue, Aug 12, 2014 at 11:33 PM, Chris [email protected] wrote:
greg brail | apigee https://apigee.com/ | twitter @gbrail https://pages.apigee.com/i-love-apis-2014.html?utm_source=sig&utm_medium=email |
Thanks for the quick answer! I don't have a stack trace of jsdom actually using contextify - the error occurs when it's trying to Incidentally, avatar-js doesn't seem to have a solution either. Contextify itself seems to be pretty small, with some 300 lines of C++ code and 50 lines of JavaScript. To your suggestions:
If there is no other way to deal with this, what's your point of view on a native implementation? |
I implemented a way to load "native modules" as JAR files, and wrote one for "contextify." With that, contextify and its tests pass. I also ran many of the jsdom tests and many of them failed, but not due to missing native code. But I think that with the next release this is going to be as fixed as it can be. |
@gbrail what's the current way to be able to use contextify? |
It should "just work." The module is written in JS and depends on a native On Mon, Sep 7, 2015 at 6:21 AM, Alessandro Tagliapietra <
Greg Brail | apigee https://apigee.com/ | twitter @gbrail |
Is it possible to run jsdom on Trireme?
On Windows, I have jsdom installed and working in my regular NodeJS installation. However, when I'm trying to run
in Trireme, I'm getting an exception saying
ReferenceError: "MZ" is not defined.
Ultimately, this is coming from jsdom trying to load
contextify.node
, which is a binary file and happens to start with the charactersMZ
.Stack trace:
Is there a way to do this with Trireme?
The text was updated successfully, but these errors were encountered: