mirror of https://github.com/tc39/test262.git
Ensure fakeObject has "entries" and "values"
This commit is contained in:
parent
7a5385e2ab
commit
bf378352c7
|
@ -11,6 +11,7 @@ author: Jordan Harband
|
||||||
function fakeObject() {
|
function fakeObject() {
|
||||||
$ERROR('The overriden version of Object was called!');
|
$ERROR('The overriden version of Object was called!');
|
||||||
}
|
}
|
||||||
|
fakeObject.entries = Object.entries;
|
||||||
|
|
||||||
var global = Function('return this;')();
|
var global = Function('return this;')();
|
||||||
global.Object = fakeObject;
|
global.Object = fakeObject;
|
||||||
|
|
|
@ -11,6 +11,7 @@ author: Jordan Harband
|
||||||
function fakeObject() {
|
function fakeObject() {
|
||||||
$ERROR('The overriden version of Object was called!');
|
$ERROR('The overriden version of Object was called!');
|
||||||
}
|
}
|
||||||
|
fakeObject.values = Object.values;
|
||||||
|
|
||||||
var global = Function('return this;')();
|
var global = Function('return this;')();
|
||||||
global.Object = fakeObject;
|
global.Object = fakeObject;
|
||||||
|
|
Loading…
Reference in New Issue