Ensure fakeObject has "entries" and "values"

This commit is contained in:
Jordan Harband 2015-12-14 12:15:21 -08:00
parent 7a5385e2ab
commit bf378352c7
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;