| Index: test/mjsunit/regress/regress-1119.js
|
| ===================================================================
|
| --- test/mjsunit/regress/regress-1119.js (revision 11348)
|
| +++ test/mjsunit/regress/regress-1119.js (working copy)
|
| @@ -28,17 +28,17 @@
|
| // Test runtime declaration of properties with var which are intercepted
|
| // by JS accessors.
|
|
|
| -__proto__.__defineSetter__("x", function() { hasBeenInvoked = true; });
|
| -__proto__.__defineSetter__("y", function() { throw 'exception'; });
|
| +this.__defineSetter__("x", function() { hasBeenInvoked = true; });
|
| +this.__defineSetter__("y", function() { throw 'exception'; });
|
|
|
| var hasBeenInvoked = false;
|
| eval("try { } catch (e) { var x = false; }");
|
| assertTrue(hasBeenInvoked);
|
|
|
| -var exception;
|
| +// This has to run in global scope, so cannot use assertThrows...
|
| try {
|
| eval("try { } catch (e) { var y = false; }");
|
| + assertUnreachable();
|
| } catch (e) {
|
| - exception = e;
|
| + assertEquals('exception', e);
|
| }
|
| -assertEquals('exception', exception);
|
|
|