Skip to content

V8 differences between NW.js 0.15.3 and Node.js 6.2.2 #5025

Closed
@ghostoy

Description

@ghostoy

Following is the comparison of V8.h between NW.js 0.15.3 (v8 version: 5.1.281.65) and Node.js 6.2.2 (v8 version 5.0.71.52):

sample

It will cause IsUndefined() and many APIs returns bad value when used in native modules built directly with node-gyp or npm.

One example is Sqlite3. When sqlite3 is built with node-gyp directly using Node.js 6.2.2, following sample app failed to run and threw Callback expected error at db.run(), which means it requires a callback function. However it runs without problem with Node.js 6.2.2 directly.

// hack sqlite3 to find correct path of binaries built for node
delete process.versions['node-webkit'];

var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(':memory:');

db.serialize(function() {
  db.run("CREATE TABLE lorem (info TEXT)");
});

db.close();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions