Skip to content
Browse files

[fix] stdlib/bsl: restore int_of_first_char js (because still used bu…

…t server-only)
  • Loading branch information...
1 parent 679c41a commit e0811aa542e5c442d7cc569216e38a921123e394 François-Régis Sinot committed Aug 17, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 opabsl/jsbsl/bslPervasives.js
View
3 opabsl/jsbsl/bslPervasives.js
@@ -101,6 +101,9 @@ var op_neg = function (n) { return -n; };
##args(l, r)
{ return l || r; };
+##register int_of_first_char \ int_of_char : string -> int
+function int_of_char(c){ return c.charCodeAt(0); }
+
##register int_of_string: string -> option(int)
##args(s)
{

0 comments on commit e0811aa

Please sign in to comment.
Something went wrong with that request. Please try again.