| Index: src/js/v8natives.js
|
| diff --git a/src/js/v8natives.js b/src/js/v8natives.js
|
| index 60a78d0ca986d52be9628a1b6a54880d3ddc7017..c66f0727880f50d1b082fea68bdcc60259a6ad5f 100644
|
| --- a/src/js/v8natives.js
|
| +++ b/src/js/v8natives.js
|
| @@ -46,25 +46,10 @@ function GetMethod(obj, p) {
|
| throw %make_type_error(kCalledNonCallable, typeof func);
|
| }
|
|
|
| -// ES6 19.1.1.1
|
| -function ObjectConstructor(x) {
|
| - if (GlobalObject != new.target && !IS_UNDEFINED(new.target)) {
|
| - return this;
|
| - }
|
| - if (IS_NULL(x) || IS_UNDEFINED(x)) return {};
|
| - return TO_OBJECT(x);
|
| -}
|
| -
|
|
|
| // ----------------------------------------------------------------------------
|
| // Object
|
|
|
| -%SetNativeFlag(GlobalObject);
|
| -%SetCode(GlobalObject, ObjectConstructor);
|
| -
|
| -%AddNamedProperty(GlobalObject.prototype, "constructor", GlobalObject,
|
| - DONT_ENUM);
|
| -
|
| // Set up non-enumerable functions on the Object.prototype object.
|
| utils.InstallFunctions(GlobalObject.prototype, DONT_ENUM, [
|
| "toString", ObjectToString,
|
|
|