Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: test/mjsunit/harmony/proxies-define-property.js

Issue 1505253002: [proxies] Fix HasProperty and getOwnPropertySymbols (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | test/mjsunit/harmony/proxies-has.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/proxies-define-property.js
diff --git a/test/mjsunit/harmony/proxies-define-property.js b/test/mjsunit/harmony/proxies-define-property.js
index 78ab85e8a4c3ff8a0fc35fa2a1eee8472e231262..f302db2621aa75e45c1533d2fd4169b2af9a1761 100644
--- a/test/mjsunit/harmony/proxies-define-property.js
+++ b/test/mjsunit/harmony/proxies-define-property.js
@@ -50,7 +50,7 @@ assertThrows("Object.defineProperty(proxy, 'foo', desc)", TypeError);
// Step 15a: Trap returns true for adding a property to a non-extensible target.
handler.defineProperty = function(t, n, d) { return true; }
-Object.freeze(target);
+Object.preventExtensions(target);
assertThrows("Object.defineProperty(proxy, 'foo', desc)", TypeError);
// Step 15b: Trap returns true for adding a non-configurable property.
« no previous file with comments | « src/objects-inl.h ('k') | test/mjsunit/harmony/proxies-has.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698