This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib,src,test: cleanup chakracore customization
* Undo obsolete test modifications and enable more tests. * Remove unnecessary deltas with upstream * Fix lint issues PR-URL: #580 Reviewed-By: Seth Brenith <[email protected]> Reviewed-By: Jimmy Thomson <[email protected]>
- Loading branch information
Showing
17 changed files
with
97 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,6 @@ ipch/ | |
*.opensdf | ||
*.VC.db | ||
*.VC.opendb | ||
*.VC.db | ||
.vs/ | ||
.vscode/ | ||
/deps/v8/src/debug/obj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 12 additions & 18 deletions
30
test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
'use strict'; | ||
const common = require('../common'); | ||
require('../common'); | ||
|
||
// This test ensures that unnecessary prototypes are no longer | ||
// being generated by Environment::NewFunctionTemplate. | ||
|
||
// | ||
// broken for some reason on Node-chakracore | ||
// see https://github.com/nodejs/node-chakracore/issues/536 | ||
// | ||
if (!common.isChakraEngine) { | ||
const assert = require('assert'); | ||
const assert = require('assert'); | ||
|
||
[ | ||
process.binding('udp_wrap').UDP.prototype.bind6, | ||
process.binding('tcp_wrap').TCP.prototype.bind6, | ||
process.binding('udp_wrap').UDP.prototype.send6, | ||
process.binding('tcp_wrap').TCP.prototype.bind, | ||
process.binding('udp_wrap').UDP.prototype.close, | ||
process.binding('tcp_wrap').TCP.prototype.open | ||
].forEach((binding, i) => { | ||
assert.strictEqual('prototype' in binding, false, `Test ${i} failed`); | ||
}); | ||
} | ||
[ | ||
process.binding('udp_wrap').UDP.prototype.bind6, | ||
process.binding('tcp_wrap').TCP.prototype.bind6, | ||
process.binding('udp_wrap').UDP.prototype.send6, | ||
process.binding('tcp_wrap').TCP.prototype.bind, | ||
process.binding('udp_wrap').UDP.prototype.close, | ||
process.binding('tcp_wrap').TCP.prototype.open | ||
].forEach((binding, i) => { | ||
assert.strictEqual('prototype' in binding, false, `Test ${i} failed`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.