mirror of https://github.com/jkjoy/sunpeiwen.git
5 lines
216 B
JavaScript
5 lines
216 B
JavaScript
|
var nativeFunctionToString = require('./_function-to-string');
|
||
|
var WeakMap = require('./_global').WeakMap;
|
||
|
|
||
|
module.exports = typeof WeakMap === 'function' && /native code/.test(nativeFunctionToString.call(WeakMap));
|