mirror of https://github.com/lukechilds/node.git
Browse Source
Though the TLSWrap constructor is only called via TLSWrap::Wrap() (i.e. tls_wrap.wrap()) internally, it is still exposed to JS. Don't allow the application to abort by inspecting the instance before it has been wrap'd by another handle. PR-URL: https://github.com/nodejs/node/pull/6184 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net>v6.x
Trevor Norris
9 years ago
committed by
Rod Vagg
2 changed files with 12 additions and 1 deletions
@ -0,0 +1,8 @@ |
|||
'use strict'; |
|||
|
|||
require('../common'); |
|||
const util = require('util'); |
|||
const TLSWrap = process.binding('tls_wrap').TLSWrap; |
|||
|
|||
// This will abort if internal pointer is not set to nullptr.
|
|||
util.inspect(new TLSWrap()); |
Loading…
Reference in new issue