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

Unified Diff: test/mjsunit/es7/object-observe.js

Issue 1489423002: [proxies] Make Object.{freeze,seal} behave correctly for proxies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add some tests. 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/runtime/runtime-object.cc ('k') | test/mjsunit/harmony/proxies-hash.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es7/object-observe.js
diff --git a/test/mjsunit/es7/object-observe.js b/test/mjsunit/es7/object-observe.js
index 5a252a3745d08b946cc0444dd4b2ffe9c70423d5..712f5a6415f5ca78249afd0e8c82de4e945d77a4 100644
--- a/test/mjsunit/es7/object-observe.js
+++ b/test/mjsunit/es7/object-observe.js
@@ -350,10 +350,10 @@ Object.freeze(obj);
Object.deliverChangeRecords(observer.callback);
observer.assertCallbackRecords([
+ { object: obj, type: 'preventExtensions' },
{ object: obj, type: 'reconfigure', name: 'a' },
{ object: obj, type: 'reconfigure', name: 'b' },
{ object: obj, type: 'reconfigure', name: 'c' },
- { object: obj, type: 'preventExtensions' },
]);
reset();
@@ -387,9 +387,9 @@ Object.seal(obj);
Object.deliverChangeRecords(observer.callback);
observer.assertCallbackRecords([
+ { object: obj, type: 'preventExtensions' },
{ object: obj, type: 'reconfigure', name: 'a' },
{ object: obj, type: 'reconfigure', name: 'b' },
- { object: obj, type: 'preventExtensions' },
]);
reset();
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | test/mjsunit/harmony/proxies-hash.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698