Comments (5)
I've discovered this has to do with making the module context-aware
. There is an open issue on nodejs
detailing some other affected modules as well as some solutions.
Some more documentation:
https://nodejs.org/docs/latest/api/addons.html#addons_context_aware_addons
I'm attempting a fix but have not found any luck thus far. My C++ skills are very novice so this stuff is going over my head and I'm really just trying to emulate what others have done to migrate their modules (like here: https://github.com/schroffl/node-lzo/pull/11/files)
from mmap-io.
@Ethan-Arrowood — I quickly looked at the linked commentary, and did some very minor edits, not sure if the macro use changes does anything at all for you, but please try it out.
from mmap-io.
No follow up, so I'm closing. Re-open if the problem subsists.
from mmap-io.
I'm receiving this deprecation message when using mmap-io in Electron:
Electron: Loading non-context-aware native module in renderer. This is deprecated
This is fixed in master thanks to this change daeff71
@ozra could you release a new version?
from mmap-io.
@ozra New release version with daeff71 will be great!
from mmap-io.
Related Issues (19)
- nan dependency version HOT 7
- npm install fails on Windows HOT 14
- Compiler warnings b/c V8 changes. Consider "node_addon_api" over "NAN"
- After upgrade to 1.1.0, the module cannot be imported HOT 7
- Readme reference Make HOT 1
- Invalid arg type The "path" argument must be one of type string, Buffer or URL. Received type number. HOT 1
- Can this do memory mapped not to file (e.g. not persisted/stored to/from disk)? HOT 2
- Current NAN fails for node 12.6.0, time for beast coding
- memory map large files on windows HOT 4
- Ability to get SharedArrayBuffer instead of ArrayBuffer
- Ability to explicitly unmap
- Release new version from latest master HOT 2
- TypeScript api sample?
- Bus error if 'offset' of mmap is greater than 2gb. HOT 1
- Build folder is empty and compatibility with phone apps
- Add minimal node example to Readme
- windows: incorrect split between high and low for position and offset HOT 3
- windows: always creating paging mapping, not file mapping HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmap-io.