Skip to content

Commit d47e566

Browse files
committed
Add note regarding use of function generation
1 parent 088dd8c commit d47e566

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/assert/is-node

lib/node_modules/@stdlib/assert/is-node/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ var bool = IS_NODE;
2323

2424
<!-- /.usage -->
2525

26+
<section class="notes">
27+
28+
- In order to determine whether the runtime is [Node.js][node-js], the implementation must resolve the global scope, thus requiring function generation. The use of function generation may be problematic in browser contexts enforcing a strict [content security policy][mdn-csp] (CSP).
29+
30+
</section>
31+
32+
<!-- /.notes -->
33+
2634
<section class="examples">
2735

2836
## Examples
@@ -42,6 +50,8 @@ console.log( IS_NODE );
4250

4351
[node-js]: https://nodejs.org/en/
4452

53+
[mdn-csp]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
54+
4555
</section>
4656

4757
<!-- /.links -->

0 commit comments

Comments
 (0)