From bf378352c7dea9b08dc48ee8df7452089e3ad916 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 14 Dec 2015 12:15:21 -0800 Subject: [PATCH] Ensure fakeObject has "entries" and "values" --- test/built-ins/object/entries/tamper-with-global-object.js | 1 + test/built-ins/object/values/tamper-with-global-object.js | 1 + 2 files changed, 2 insertions(+) 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;