You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With browserify, simply `require('assert')` or use the `assert` global and you will get this module.
10
10
@@ -15,7 +15,7 @@ The goal is to provide an API that is as functionally identical to the [Node.js
15
15
To use this module directly (without browserify), install it as a dependency:
16
16
17
17
```
18
-
npm install buffer
18
+
npm install assert
19
19
```
20
20
21
21
## Usage
@@ -24,7 +24,7 @@ The goal is to provide an API that is as functionally identical to the [Node.js
24
24
25
25
### Inconsistencies with Node.js `assert`
26
26
27
-
// TODO
27
+
Due to differences between browsers, some error properties such as `message` and `stack` will be inconsistent. However the assertion behaviour is as close as possible to Node.js and the same error `code` will always be used.
0 commit comments