Comparing version 13.0.1 to 14.3.0
@@ -15,2 +15,3 @@ var fs = require('fs') | ||
[ /^13\./, '13.0.1' ], | ||
[ /^14\./, '14.3.0' ], | ||
]; | ||
@@ -17,0 +18,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "13.0.1", | ||
"version": "14.3.0", | ||
"description": "Edge.js: run .NET and Node.js in-process on Windows, Mac OS, and Linux", | ||
@@ -11,0 +11,0 @@ "tags": [ |
@@ -37,8 +37,8 @@ var edge = require('../lib/edge.js'), assert = require('assert') | ||
b: 3.1415, | ||
c: 'foo', | ||
c: 'fooåäö', | ||
d: true, | ||
e: false, | ||
f: new Buffer(10), | ||
g: [ 1, 'foo' ], | ||
h: { a: 'foo', b: 12 }, | ||
g: [ 1, 'fooåäö' ], | ||
h: { a: 'fooåäö', b: 12 }, | ||
i: function (payload, callback) { }, | ||
@@ -65,3 +65,3 @@ j: new Date(Date.UTC(2013, 07, 30)) | ||
assert.ok(result.b === 3.1415); | ||
assert.ok(result.c === 'foo'); | ||
assert.ok(result.c === 'fooåäö'); | ||
assert.ok(result.d === true); | ||
@@ -75,5 +75,5 @@ assert.ok(result.e === false); | ||
assert.ok(result.g[0] === 1); | ||
assert.ok(result.g[1] === 'foo'); | ||
assert.ok(result.g[1] === 'fooåäö'); | ||
assert.equal(typeof result.h, 'object'); | ||
assert.ok(result.h.a === 'foo'); | ||
assert.ok(result.h.a === 'fooåäö'); | ||
assert.ok(result.h.b === 12); | ||
@@ -80,0 +80,0 @@ assert.equal(typeof result.i, 'function'); |
@@ -54,3 +54,3 @@ /** | ||
assert.ok(result.b === 3.1415); | ||
assert.ok(result.c === 'foo'); | ||
assert.ok(result.c === 'fooåäö'); | ||
assert.ok(result.d === true); | ||
@@ -64,5 +64,5 @@ assert.ok(result.e === false); | ||
assert.ok(result.g[0] === 1); | ||
assert.ok(result.g[1] === 'foo'); | ||
assert.ok(result.g[1] === 'fooåäö'); | ||
assert.equal(typeof result.h, 'object'); | ||
assert.ok(result.h.a === 'foo'); | ||
assert.ok(result.h.a === 'fooåäö'); | ||
assert.ok(result.h.b === 12); | ||
@@ -110,8 +110,8 @@ assert.equal(typeof result.i, 'function'); | ||
b: 3.1415, | ||
c: 'foo', | ||
c: 'fooåäö', | ||
d: true, | ||
e: false, | ||
f: new Buffer(10), | ||
g: [ 1, 'foo' ], | ||
h: { a: 'foo', b: 12 }, | ||
g: [ 1, 'fooåäö' ], | ||
h: { a: 'fooåäö', b: 12 }, | ||
j: new Date(Date.UTC(2013, 07, 30)) | ||
@@ -118,0 +118,0 @@ }; |
@@ -533,3 +533,3 @@ var edge = require('../lib/edge.js'), assert = require('assert') | ||
if (process.env.EDGE_USE_CORECLR) { | ||
it.skip(prefix + ' fails when dynamically loading an assembly that doesn\'t exist', function () { | ||
it(prefix + ' fails when dynamically loading an assembly that doesn\'t exist', function (done) { | ||
assert.throws(function() { | ||
@@ -557,7 +557,10 @@ var func = edge.func({ | ||
func("JavaScript"); | ||
done(); | ||
}, | ||
function (error) { | ||
if ((error instanceof Error) && error.message.match(/Could not load the specified file/)) { | ||
done(); | ||
return true; | ||
} | ||
done(); | ||
return false; | ||
@@ -564,0 +567,0 @@ }, |
@@ -48,8 +48,8 @@ var edge = require('../lib/edge.js'), assert = require('assert') | ||
b: 3.1415, | ||
c: 'foo', | ||
c: 'fooåäö', | ||
d: true, | ||
e: false, | ||
f: new Buffer(10), | ||
g: [ 1, 'foo' ], | ||
h: { a: 'foo', b: 12 }, | ||
g: [ 1, 'fooåäö' ], | ||
h: { a: 'fooåäö', b: 12 }, | ||
i: function (payload, callback) { }, | ||
@@ -56,0 +56,0 @@ j: new Date(Date.UTC(2013,07,30)) |
@@ -19,9 +19,11 @@ var spawn = require('child_process').spawn; | ||
else { | ||
run(process.platform === 'win32' ? 'dotnet.exe' : 'dotnet', ['restore'], function(code, signal) { | ||
if (code === 0) { | ||
run(process.platform === 'win32' ? 'dotnet.exe' : 'dotnet', ['build'], runOnSuccess); | ||
run(process.platform === 'win32' ? 'dotnet.exe' : 'dotnet', ['build'], function(code, signal) { | ||
if (code === 0) { | ||
run('cp', ['../test/bin/Debug/netcoreapp1.1/test.dll', '../test/Edge.Tests.CoreClr.dll'], runOnSuccess); | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
@@ -56,3 +58,2 @@ | ||
process.env['EDGE_APP_ROOT'] = path.join(testDir, 'bin', 'Debug', 'netcoreapp1.1'); | ||
spawn('node', [mocha, testDir, '-R', 'spec', '-t', '10000', '-gc'], { | ||
@@ -59,0 +60,0 @@ stdio: 'inherit' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
14306040
236
2997
1783
15