MCPcopy Create free account
hub / github.com/nodejs/node / is_same_origin

Function is_same_origin

test/fixtures/wpt/resources/testharness.js:4978–4985  ·  view source on GitHub ↗
(w)

Source from the content-addressed store, hash-verified

4976 }
4977
4978 function is_same_origin(w) {
4979 try {
4980 'random_prop' in w;
4981 return true;
4982 } catch (e) {
4983 return false;
4984 }
4985 }
4986
4987 /** Returns the 'src' URL of the first <script> tag in the page to include the file 'testharness.js'. */
4988 function get_script_url()

Callers 1

testharness.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected