diff options
Diffstat (limited to 'node_modules/es-abstract/2019/Type.js')
-rw-r--r-- | node_modules/es-abstract/2019/Type.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/es-abstract/2019/Type.js b/node_modules/es-abstract/2019/Type.js new file mode 100644 index 000000000..0bd11659c --- /dev/null +++ b/node_modules/es-abstract/2019/Type.js @@ -0,0 +1,12 @@ +'use strict'; + +var ES5Type = require('../5/Type'); + +// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values + +module.exports = function Type(x) { + if (typeof x === 'symbol') { + return 'Symbol'; + } + return ES5Type(x); +}; |