| Index: test/mjsunit/regress/regress-cr-344285.js
|
| diff --git a/test/mjsunit/throw-exception-for-null-access.js b/test/mjsunit/regress/regress-cr-344285.js
|
| similarity index 85%
|
| copy from test/mjsunit/throw-exception-for-null-access.js
|
| copy to test/mjsunit/regress/regress-cr-344285.js
|
| index 018cfef9ecb79e43da60134546a6d8f815c0b832..42e8bd109bb34cfb3de436af96f91104f698b836 100644
|
| --- a/test/mjsunit/throw-exception-for-null-access.js
|
| +++ b/test/mjsunit/regress/regress-cr-344285.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,13 +25,13 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Must throw TypeError when accessing properties of null.
|
| -var caught = false
|
| +function __f_1(g) { return (g/-1) ^ 1; }
|
| +var __v_0 = 1 << 31;
|
| +var __v_2 = __f_1(__v_0);
|
| +caught = false;
|
| try {
|
| - null[0];
|
| - assertTrue(false);
|
| + Realm.eval(__v_2, "Realm.global(0).y = 1");
|
| } catch (e) {
|
| caught = true;
|
| - assertTrue(e instanceof TypeError);
|
| }
|
| -assertTrue(caught);
|
| +assertTrue(caught, "exception not caught");
|
|
|