aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/ToObject.js @ 56f6c6df
1 |
'use strict'; |
---|---|
2 |
|
3 |
var GetIntrinsic = require('../GetIntrinsic'); |
4 |
|
5 |
var $Object = GetIntrinsic('%Object%'); |
6 |
|
7 |
var RequireObjectCoercible = require('./RequireObjectCoercible'); |
8 |
|
9 |
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
10 |
|
11 |
module.exports = function ToObject(value) { |
12 |
RequireObjectCoercible(value); |
13 |
return $Object(value); |
14 |
};
|