Skip to content

Commit

Permalink
Remove outdated comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Mar 13, 2020
1 parent e480dd2 commit f4a6ac5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/napi/lib/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ describe('JsFunction', function() {
assert.equal(addon.return_js_function()(41), 42);
});

// The n-api runtime cannot yet call JS functions.
it('call a JsFunction built in JS that implements x => x + 1', function () {
assert.equal(addon.call_js_function(function(x) { return x + 1 }), 17);
});

// The n-api runtime cannot yet call JS functions.
it('new a JsFunction', function () {
assert.equal(addon.construct_js_function(Date), 1970);
});
Expand Down

0 comments on commit f4a6ac5

Please sign in to comment.