| Index: test/mjsunit/es6/object-tostring.js
|
| diff --git a/test/mjsunit/es6/object-tostring.js b/test/mjsunit/es6/object-tostring.js
|
| index 6a2ff280665395c85c95d3776d9e366abc7fa5fd..bc7d9681f89a7aaf0f4857c5b2e4d3dd5ea554a1 100644
|
| --- a/test/mjsunit/es6/object-tostring.js
|
| +++ b/test/mjsunit/es6/object-tostring.js
|
| @@ -156,7 +156,20 @@ assertThrows(() => Object.prototype.toString.call(revocable.proxy), TypeError);
|
|
|
| var handler = {};
|
| revocable = Proxy.revocable([], handler);
|
| +// The first get() call, i.e., toString() revokes the proxy
|
| handler.get = () => revocable.revoke();
|
| +assertEquals("[object Array]", Object.prototype.toString.call(revocable.proxy));
|
| +assertThrows(() => Object.prototype.toString.call(revocable.proxy), TypeError);
|
| +
|
| +revocable = Proxy.revocable([], handler);
|
| +handler.get = () => {revocable.revoke(); return "value";};
|
| +assertEquals("[object value]", Object.prototype.toString.call(revocable.proxy));
|
| +assertThrows(() => Object.prototype.toString.call(revocable.proxy), TypeError);
|
| +
|
| +
|
| +revocable = Proxy.revocable(function() {}, handler);
|
| +handler.get = () => revocable.revoke();
|
| +assertEquals("[object Function]", Object.prototype.toString.call(revocable.proxy));
|
| assertThrows(() => Object.prototype.toString.call(revocable.proxy), TypeError);
|
|
|
| function* gen() { yield 1; }
|
|
|