aswi2020vldc-gitlab/templetes/node_modules/es-abstract/5/ToObject.js @ 4605a44b
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | var GetIntrinsic = require('../GetIntrinsic'); |
||
4 | |||
5 | var $Object = GetIntrinsic('%Object%'); |
||
6 | |||
7 | var CheckObjectCoercible = require('./CheckObjectCoercible'); |
||
8 | |||
9 | // http://www.ecma-international.org/ecma-262/5.1/#sec-9.9
|
||
10 | |||
11 | module.exports = function ToObject(value) { |
||
12 | CheckObjectCoercible(value); |
||
13 | return $Object(value); |
||
14 | };
|