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