unwrap-wrap-with-proto.js (288B)
1 // |reftest| shell-option(--enable-shadow-realms) skip-if(!xulRuntime.shell) 2 3 var sr = new ShadowRealm(); 4 5 var w = wrapWithProto(sr, null); 6 7 var r = ShadowRealm.prototype.evaluate.call(w, `"ok"`); 8 9 assertEq(r, "ok"); 10 11 if (typeof reportCompare === 'function') 12 reportCompare(true, true);