Chromium Code Reviews| Index: test/mjsunit/es6/block-sloppy-function.js |
| diff --git a/test/mjsunit/es6/block-sloppy-function.js b/test/mjsunit/es6/block-sloppy-function.js |
| index e5f244774f673942a382c66703865ee33dfe758d..fb7236177bac2a6b16c6f94a25ec4ae606654082 100644 |
| --- a/test/mjsunit/es6/block-sloppy-function.js |
| +++ b/test/mjsunit/es6/block-sloppy-function.js |
| @@ -538,17 +538,15 @@ let dontHoistGlobal; |
| assertEquals(undefined, dontHoistGlobal); |
| let dontHoistEval; |
| -// BUG(v8:) This shouldn't hoist and shouldn't throw |
| var throws = false; |
| try { |
| eval("{ function dontHoistEval() {} }"); |
| } catch (e) { |
| throws = true; |
| } |
| -assertTrue(throws); |
| +assertFalse(throws); |
| // When the global object is frozen, silently don't hoist |
| -// Currently this actually throws BUG(v8:4452) |
| Object.freeze(this); |
| throws = false; |
| try { |
| @@ -558,5 +556,4 @@ try { |
| } |
| assertFalse(this.hasOwnProperty("hoistWhenFrozen")); |
| assertThrows(() => hoistWhenFrozen, ReferenceError); |
| -// Should be assertFalse BUG(v8:4452) |
| -assertTrue(throws); |
| +assertFalse(throws); |
|
Dan Ehrenberg
2016/07/01 01:36:20
This one's funny. Because the global object is alr
|