From 3073154627b050360dd2732ba5189fba6b21707e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Thu, 11 Apr 2019 12:13:31 +0200 Subject: [PATCH 1/2] Add notice about browser support. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e2cc9e1..55708b2 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ With browserify, simply `require('assert')` or use the `assert` global and you w The goal is to provide an API that is as functionally identical to the [Node.js `assert` API](https://nodejs.org/api/assert.html) as possible. Read the [official docs](https://nodejs.org/api/assert.html) for API documentation. +> `assert` supports modern browsers. Older browsers may require shimming functionality. +> In Internet Explorer and other environments without `Promise`, the `throws`/`rejects` family of methods requires a Promise shim. +> In Internet Explorer 8-10, the shim and sham versions of [es5-shim](https://github.com/es-shims/es5-shim) are also required. + ## Install To use this module directly (without browserify), install it as a dependency: From 2a4cf97b32fde47f449d06555644e9621f5d16c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 24 May 2019 12:46:21 +0200 Subject: [PATCH 2/2] should only be in ie 8 actually --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 55708b2..8a6e244 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The goal is to provide an API that is as functionally identical to the [Node.js > `assert` supports modern browsers. Older browsers may require shimming functionality. > In Internet Explorer and other environments without `Promise`, the `throws`/`rejects` family of methods requires a Promise shim. -> In Internet Explorer 8-10, the shim and sham versions of [es5-shim](https://github.com/es-shims/es5-shim) are also required. +> In Internet Explorer 8, the shim and sham versions of [es5-shim](https://github.com/es-shims/es5-shim) are also required. ## Install