Skip to content

Commit

Permalink
Update API docs, one more error
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Oct 26, 2015
1 parent 5edcbf9 commit 2a64a5c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Returns the bitwise AND of this Long and the specified.
| other | *!Long | number | string* | Other Long
| **@returns** | *!Long* |

#### Long#compare(other)
#### Long#compare/comp(other)

Compares this Long's value with the specified's.

Expand Down
2 changes: 1 addition & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Distributions
contains the commented source.

* **[long.min.js](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.min.js)**
has been compiled with Closure Compiler using `--compilation_level=ADVANCED_OPTIMIZATIONS`.
has been compiled with Closure Compiler.

* **[long.min.js.gz](https://raw.githubusercontent.com/dcodeIO/Long.js/master/dist/long.min.js.gz)**
has also been gzipped using `-9`.
Expand Down
2 changes: 1 addition & 1 deletion dist/long.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
unsigned = false;
radix = radix || 10;
if (radix < 2 || 36 < radix)
throw Error('radix out of range');
throw RangeError('radix out of range');

var p;
if ((p = str.indexOf('-')) > 0)
Expand Down
4 changes: 2 additions & 2 deletions dist/long.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/long.min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/long.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/long.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Long.fromString = function fromString(str, unsigned, radix) {
unsigned = false;
radix = radix || 10;
if (radix < 2 || 36 < radix)
throw Error('radix out of range');
throw RangeError('radix out of range');

var p;
if ((p = str.indexOf('-')) > 0)
Expand Down

0 comments on commit 2a64a5c

Please sign in to comment.