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

Unified Diff: test/mjsunit/strict-mode.js

Issue 6712059: Follow jsc on not throwing when trying to add a property to a non-extensible object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 months 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 | « test/mjsunit/regress/regress-create-exception.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strict-mode.js
===================================================================
--- test/mjsunit/strict-mode.js (revision 7276)
+++ test/mjsunit/strict-mode.js (working copy)
@@ -983,7 +983,8 @@
function CheckPill(pill) {
assertEquals("function", typeof pill);
assertInstanceof(pill, Function);
- assertThrows(function() { pill.property = "value"; }, TypeError);
+ pill.property = "value";
+ assertEquals(pill.value, undefined);
Martin Maly 2011/03/21 20:38:35 This is alright. We could also have: assertThrows
assertThrows(pill, TypeError);
assertEquals(pill.prototype, (function(){}).prototype);
var d = Object.getOwnPropertyDescriptor(pill, "prototype");
« no previous file with comments | « test/mjsunit/regress/regress-create-exception.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698