Skip to content

Commit 3263752

Browse files
committed
Runtime: do not reset the MlString prototype (fixes #323)
1 parent 10345af commit 3263752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/mlString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function caml_string_set (s, i, c) {
242242
function MlString (tag, contents, length) {
243243
this.t=tag; this.c=contents; this.l=length;
244244
}
245-
MlString.prototype = { toString:function(){return caml_to_js_string(this)} }
245+
MlString.prototype.toString = function(){return caml_to_js_string(this)};
246246

247247
//Provides: caml_convert_string_to_bytes
248248
//Requires: caml_str_repeat, caml_subarray_to_string

0 commit comments

Comments
 (0)