aswi2020vldc-gitlab/templetes/node_modules/es-to-primitive/index.js @ 3a515b92
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | var ES5 = require('./es5'); |
||
4 | var ES6 = require('./es6'); |
||
5 | var ES2015 = require('./es2015'); |
||
6 | |||
7 | if (Object.defineProperty) { |
||
8 | Object.defineProperty(ES2015, 'ES5', { enumerable: false, value: ES5 }); |
||
9 | Object.defineProperty(ES2015, 'ES6', { enumerable: false, value: ES6 }); |
||
10 | Object.defineProperty(ES2015, 'ES2015', { enumerable: false, value: ES2015 }); |
||
11 | } else { |
||
12 | ES6.ES5 = ES5; |
||
13 | ES6.ES6 = ES6; |
||
14 | ES6.ES2015 = ES2015; |
||
15 | }
|
||
16 | |||
17 | module.exports = ES2015; |