diff options
author | isaacs <nope@not.real> | 2019-07-03 10:23:19 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-18 15:12:49 -0700 |
commit | 1721034a40c5e7a0a334701dc36153adee3f27e5 (patch) | |
tree | 7b2ce5a0c5d67d2e1d817fc548571250e8c1a305 /deps/npm/node_modules/has-symbols/test/shams/core-js.js | |
parent | 6df7b6a4f9cb64d298e7fd0691c4d09679872922 (diff) | |
download | android-node-v8-1721034a40c5e7a0a334701dc36153adee3f27e5.tar.gz android-node-v8-1721034a40c5e7a0a334701dc36153adee3f27e5.tar.bz2 android-node-v8-1721034a40c5e7a0a334701dc36153adee3f27e5.zip |
deps: upgrade npm to 6.10.0
PR-URL: https://github.com/nodejs/node/pull/28525
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/has-symbols/test/shams/core-js.js')
-rw-r--r-- | deps/npm/node_modules/has-symbols/test/shams/core-js.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/npm/node_modules/has-symbols/test/shams/core-js.js b/deps/npm/node_modules/has-symbols/test/shams/core-js.js new file mode 100644 index 0000000000..df5365c23e --- /dev/null +++ b/deps/npm/node_modules/has-symbols/test/shams/core-js.js @@ -0,0 +1,28 @@ +'use strict'; + +var test = require('tape'); + +if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { + test('has native Symbol support', function (t) { + t.equal(typeof Symbol, 'function'); + t.equal(typeof Symbol(), 'symbol'); + t.end(); + }); + return; +} + +var hasSymbols = require('../../shams'); + +test('polyfilled Symbols', function (t) { + /* eslint-disable global-require */ + t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); + require('core-js/fn/symbol'); + require('core-js/fn/symbol/to-string-tag'); + + require('../tests')(t); + + var hasSymbolsAfter = hasSymbols(); + t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); + /* eslint-enable global-require */ + t.end(); +}); |