blob: 4aca5c907eac0a43ab388a2863544ab36b666ded (
plain)
1
2
3
4
5
6
7
8
9
10
|
load(libdir + 'asserts.js');
var nativeCode = "function () {\n [native code]\n}";
var proxy = new Proxy(function() {}, {});
assertEq(Function.prototype.toString.call(proxy), nativeCode);
var o = Proxy.revocable(function() {}, {});
assertEq(Function.prototype.toString.call(o.proxy), nativeCode);
o.revoke();
assertEq(Function.prototype.toString.call(o.proxy), nativeCode);
|