UNPKG

osrm

Version:

The Open Source Routing Machine is a high performance routing engine written in C++14 designed to run on OpenStreetMap data.

14 lines (10 loc) 394 B
'use strict'; var origSymbol = global.Symbol; var hasSymbolSham = require('./shams'); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } if (typeof Symbol !== 'function') { return false; } if (typeof origSymbol('foo') !== 'symbol') { return false; } if (typeof Symbol('bar') !== 'symbol') { return false; } return hasSymbolSham(); };