diff --git a/test/built-ins/object/entries/tamper-with-global-object.js b/test/built-ins/object/entries/tamper-with-global-object.js index 7b12a3c8c1..0ba60fcb4c 100644 --- a/test/built-ins/object/entries/tamper-with-global-object.js +++ b/test/built-ins/object/entries/tamper-with-global-object.js @@ -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; diff --git a/test/built-ins/object/values/tamper-with-global-object.js b/test/built-ins/object/values/tamper-with-global-object.js index d6e0dad2e9..df442fe186 100644 --- a/test/built-ins/object/values/tamper-with-global-object.js +++ b/test/built-ins/object/values/tamper-with-global-object.js @@ -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;