[node] switch to NodeRequest member fn callback
For (hopefully) better performance than creating a new v8::Context to wrap each callback while still avoiding leaking memory with v8::FunctionTemplate. Adds a JavaScript shim in front of module.exports.Map to wrap the req.respond API internally and preserve the public callback-passing API, while still exporting the correct prototype.
This commit is contained in:
committed by
Mike Morris
parent
d6f667a5e7
commit
edec56e6c5
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var mbgl = require('../../../lib/mapbox-gl-native');
|
||||
var mbgl = require('../index');
|
||||
var path = require('path');
|
||||
var test = require('tape');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user