| Index: third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html b/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
|
| index 9760e6a59f4363d744658cb9012b06e8202e10ed..aeb26bce411e24a3af79b278f900d2e967c95419 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
|
| @@ -4,16 +4,18 @@
|
| <script src="../../http/tests/inspector/console-test.js"></script>
|
| <script>
|
| var obj = {}
|
| -Object.defineProperty(obj, 'foo', {enumerable: true, get: function() { return {a:1,b:2}; }});
|
| -Object.defineProperty(obj, 'bar', {enumerable: false, set: function(x) { this.baz = x; }});
|
| +Object.defineProperty(obj, "foo", {enumerable: true, get: function() { return {a:1,b:2}; }});
|
| +Object.defineProperty(obj, "bar", {enumerable: false, set: function(x) { this.baz = x; }});
|
|
|
| var arr = [];
|
| Object.defineProperty(arr, 0, {enumerable: true, get: function() { return 1; }});
|
| Object.defineProperty(arr, 1, {enumerable: false, set: function(x) { this.baz = x; }});
|
|
|
| +var myError = new Error("myError");
|
| +myError.stack = "custom stack";
|
| var objWithGetterExceptions = {
|
| - get error() { throw new Error('myError') },
|
| - get string() { throw 'myString' },
|
| + get error() { throw myError },
|
| + get string() { throw "myString" },
|
| get number() { throw 123 },
|
| get function() { throw function() {} },
|
| };
|
|
|