Worker-constructor-proto.any.js (382B)
1 //META: global=worker 2 test(() => { 3 const proto = {}; 4 assert_equals(String(Object.getPrototypeOf(WorkerLocation)).replace(/\n/g, " ").replace(/\s\s+/g, " "), "function () { [native code] }"); 5 Object.setPrototypeOf(WorkerLocation, proto); 6 assert_equals(Object.getPrototypeOf(WorkerLocation), proto); 7 }, 'Tests that setting the proto of a built in constructor is not reset.');